Skip to content

Commit

Permalink
Remove deprecated GuildChannel and PrivateChannel methods (#1203)
Browse files Browse the repository at this point in the history
First deprecated in 2016 with #163
  • Loading branch information
Zachinquarantine committed Jun 30, 2022
1 parent a7f0378 commit f446e06
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions state.go
Expand Up @@ -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 {
Expand Down

0 comments on commit f446e06

Please sign in to comment.