Skip to content

Commit fe3e043

Browse files
committed
Remove rest.GetDMChannels
it does nothing lulz thanks discord 🙏
1 parent 4c19fca commit fe3e043

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

rest/rest_endpoints.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ var (
4444
GetCurrentUserApplicationRoleConnection = NewNoBotAuthEndpoint(http.MethodGet, "/users/@me/applications/{application.id}/role-connection")
4545
UpdateCurrentUserApplicationRoleConnection = NewNoBotAuthEndpoint(http.MethodPut, "/users/@me/applications/{application.id}/role-connection")
4646
LeaveGuild = NewEndpoint(http.MethodDelete, "/users/@me/guilds/{guild.id}")
47-
GetDMChannels = NewEndpoint(http.MethodGet, "/users/@me/channels")
4847
CreateDMChannel = NewEndpoint(http.MethodPost, "/users/@me/channels")
4948
)
5049

rest/users.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ type Users interface {
1616
GetUser(userID snowflake.ID, opts ...RequestOpt) (*discord.User, error)
1717
UpdateCurrentUser(userUpdate discord.UserUpdate, opts ...RequestOpt) (*discord.OAuth2User, error)
1818
LeaveGuild(guildID snowflake.ID, opts ...RequestOpt) error
19-
GetDMChannels(opts ...RequestOpt) ([]discord.Channel, error)
2019
CreateDMChannel(userID snowflake.ID, opts ...RequestOpt) (*discord.DMChannel, error)
2120
}
2221

@@ -38,11 +37,6 @@ func (s *userImpl) LeaveGuild(guildID snowflake.ID, opts ...RequestOpt) error {
3837
return s.client.Do(LeaveGuild.Compile(nil, guildID), nil, nil, opts...)
3938
}
4039

41-
func (s *userImpl) GetDMChannels(opts ...RequestOpt) (channels []discord.Channel, err error) {
42-
err = s.client.Do(GetDMChannels.Compile(nil), nil, &channels, opts...)
43-
return
44-
}
45-
4640
func (s *userImpl) CreateDMChannel(userID snowflake.ID, opts ...RequestOpt) (channel *discord.DMChannel, err error) {
4741
err = s.client.Do(CreateDMChannel.Compile(nil), discord.DMChannelCreate{RecipientID: userID}, &channel, opts...)
4842
return

0 commit comments

Comments
 (0)