Skip to content

Commit

Permalink
feature: address 'ban' and 'kick' not functioning as intended
Browse files Browse the repository at this point in the history
  • Loading branch information
4x8Matrix committed May 24, 2024
1 parent 35f81ba commit 800d58e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Package/Classes/Objects/DiscordGuildMember.luau
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ DiscordGuildMember.Prototype.type = "DiscordGuildMember"
@within Objects.DiscordGuildMember
]=]
function DiscordGuildMember.Prototype.kickAsync(self: DiscordGuildMember, deleteMessagesSeconds: number?)
return self.discordClient.discordGateway:putAsync(string.format(DiscordEndpoints.BotBanGuildMember, self.guildId, self.user.id), {
return self.discordClient.discordGateway:putAsync(string.format(DiscordEndpoints.BotRemoveGuildMember, self.guildId, self.user.id), {
delete_message_seconds = deleteMessagesSeconds or 0
}):await()
end
Expand All @@ -51,7 +51,7 @@ end
@within Objects.DiscordGuildMember
]=]
function DiscordGuildMember.Prototype.banAsync(self: DiscordGuildMember)
return self.discordClient.discordGateway:deleteAsync(string.format(DiscordEndpoints.BotRemoveGuildMember, self.guildId, self.user.id)):await()
return self.discordClient.discordGateway:deleteAsync(string.format(DiscordEndpoints.BotBanGuildMember, self.guildId, self.user.id)):await()
end

--[=[
Expand Down

0 comments on commit 800d58e

Please sign in to comment.