Remove deprecated GuildChannel and PrivateChannel methods (#1203)
First deprecated in 2016 with #163
This commit is contained in:
parent
a7f0378623
commit
f446e069a1
1 changed files with 0 additions and 12 deletions
12
state.go
12
state.go
|
@ -661,18 +661,6 @@ func (s *State) ThreadMemberUpdate(mu *ThreadMemberUpdate) error {
|
||||||
return nil
|
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.
|
// Channel gets a channel by ID, it will look in all guilds and private channels.
|
||||||
func (s *State) Channel(channelID string) (*Channel, error) {
|
func (s *State) Channel(channelID string) (*Channel, error) {
|
||||||
if s == nil {
|
if s == nil {
|
||||||
|
|
Loading…
Reference in a new issue