소스 검색

Rename GuildBanAdd to GuildBanCreate

Chris Rhodes 9 년 전
부모
커밋
e836b7a500
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      restapi.go

+ 2 - 2
restapi.go

@@ -275,10 +275,10 @@ func (s *Session) GuildBans(guildID string) (st []User, err error) {
 	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.
 // 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)
 	return