1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-10-02 07:18:49 +00:00

api: Remove Client.Kick and rename .KickWithReason to .Kick

This commit is contained in:
Maximilian von Lindern 2021-08-18 15:48:43 +02:00 committed by diamondburned
parent eece98903a
commit b61179d188

View file

@ -262,13 +262,7 @@ func (c *Client) Prune(guildID discord.GuildID, data PruneData) (uint, error) {
// Requires KICK_MEMBERS permission. // Requires KICK_MEMBERS permission.
// //
// Fires a Guild Member Remove Gateway event. // Fires a Guild Member Remove Gateway event.
func (c *Client) Kick(guildID discord.GuildID, userID discord.UserID) error { func (c *Client) Kick(
return c.KickWithReason(guildID, userID, "")
}
// KickWithReason is the same as Kick, but adds the given reason to the audit
// log.
func (c *Client) KickWithReason(
guildID discord.GuildID, userID discord.UserID, reason AuditLogReason) error { guildID discord.GuildID, userID discord.UserID, reason AuditLogReason) error {
return c.FastRequest( return c.FastRequest(