Remove deprecated GuildChannel and PrivateChannel methods (#1203)

First deprecated in 2016 with #163
This commit is contained in:
Zachinquarantine 2022-06-30 17:49:29 -04:00 committed by GitHub
parent a7f0378623
commit f446e069a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -661,18 +661,6 @@ func (s *State) ThreadMemberUpdate(mu *ThreadMemberUpdate) error {
return nil
}
// GuildChannel gets a channel by ID from a guild.
// This method is Deprecated, use Channel(channelID)
func (s *State) GuildChannel(guildID, channelID string) (*Channel, error) {
return s.Channel(channelID)
}
// PrivateChannel gets a private channel by ID.
// This method is Deprecated, use Channel(channelID)
func (s *State) PrivateChannel(channelID string) (*Channel, error) {
return s.Channel(channelID)
}
// Channel gets a channel by ID, it will look in all guilds and private channels.
func (s *State) Channel(channelID string) (*Channel, error) {
if s == nil {