Method: Discordrb::Channel#delete

Defined in:
lib/discordrb/data/channel.rb

#delete(reason = nil) ⇒ Object

Permanently deletes this channel

Parameters:

  • reason (String) (defaults to: nil)

    The reason the for the channel deletion.



607
608
609
# File 'lib/discordrb/data/channel.rb', line 607

def delete(reason = nil)
  API::Channel.delete(@bot.token, @id, reason)
end