Skip to content

Commit 0720f59

Browse files
committed
Remove guild deletion API
1 parent 482a53c commit 0720f59

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

rest/guilds.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ type Guilds interface {
1919
GetGuild(guildID snowflake.ID, withCounts bool, opts ...RequestOpt) (*discord.RestGuild, error)
2020
GetGuildPreview(guildID snowflake.ID, opts ...RequestOpt) (*discord.GuildPreview, error)
2121
UpdateGuild(guildID snowflake.ID, guildUpdate discord.GuildUpdate, opts ...RequestOpt) (*discord.RestGuild, error)
22-
DeleteGuild(guildID snowflake.ID, opts ...RequestOpt) error
2322

2423
GetGuildVanityURL(guildID snowflake.ID, opts ...RequestOpt) (*discord.PartialInvite, error)
2524

@@ -85,10 +84,6 @@ func (s *guildImpl) UpdateGuild(guildID snowflake.ID, guildUpdate discord.GuildU
8584
return
8685
}
8786

88-
func (s *guildImpl) DeleteGuild(guildID snowflake.ID, opts ...RequestOpt) error {
89-
return s.client.Do(DeleteGuild.Compile(nil, guildID), nil, nil, opts...)
90-
}
91-
9287
func (s *guildImpl) GetGuildVanityURL(guildID snowflake.ID, opts ...RequestOpt) (partialInvite *discord.PartialInvite, err error) {
9388
err = s.client.Do(GetGuildVanityURL.Compile(nil, guildID), nil, &partialInvite, opts...)
9489
return

rest/rest_endpoints.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ var (
5252
GetGuild = NewEndpoint(http.MethodGet, "/guilds/{guild.id}")
5353
GetGuildPreview = NewEndpoint(http.MethodGet, "/guilds/{guild.id}/preview")
5454
UpdateGuild = NewEndpoint(http.MethodPatch, "/guilds/{guild.id}")
55-
DeleteGuild = NewEndpoint(http.MethodDelete, "/guilds/{guild.id}")
5655
GetGuildVanityURL = NewEndpoint(http.MethodGet, "/guilds/{guild.id}/vanity-url")
5756

5857
CreateGuildChannel = NewEndpoint(http.MethodPost, "/guilds/{guild.id}/channels")

0 commit comments

Comments
 (0)