fix(GuildDelete)!: stop returning guild (#1329)
Stop returning Guild from GuildDelete, since underlying endpoint returns 204 (No Content).
This commit is contained in:
parent
1252b71f38
commit
dde7690782
1 changed files with 2 additions and 7 deletions
|
@ -672,14 +672,9 @@ func (s *Session) GuildEdit(guildID string, g *GuildParams, options ...RequestOp
|
|||
|
||||
// GuildDelete deletes a Guild.
|
||||
// guildID : The ID of a Guild
|
||||
func (s *Session) GuildDelete(guildID string, options ...RequestOption) (st *Guild, err error) {
|
||||
func (s *Session) GuildDelete(guildID string, options ...RequestOption) (err error) {
|
||||
|
||||
body, err := s.RequestWithBucketID("DELETE", EndpointGuild(guildID), nil, EndpointGuild(guildID), options...)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
err = unmarshal(body, &st)
|
||||
_, err = s.RequestWithBucketID("DELETE", EndpointGuild(guildID), nil, EndpointGuild(guildID), options...)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue