Rename GuildBanAdd to GuildBanCreate
This commit is contained in:
parent
bb4f63775e
commit
e836b7a500
1 changed files with 2 additions and 2 deletions
|
@ -275,10 +275,10 @@ func (s *Session) GuildBans(guildID string) (st []User, err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// GuildBanAdd bans the given user from the given guild.
|
// GuildBanCreate bans the given user from the given guild.
|
||||||
// guildID : The ID of a Guild.
|
// guildID : The ID of a Guild.
|
||||||
// userID : The ID of a User
|
// userID : The ID of a User
|
||||||
func (s *Session) GuildBanAdd(guildID, userID string) (err error) {
|
func (s *Session) GuildBanCreate(guildID, userID string) (err error) {
|
||||||
|
|
||||||
_, err = s.Request("PUT", GUILD_BAN(guildID, userID), nil)
|
_, err = s.Request("PUT", GUILD_BAN(guildID, userID), nil)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue