class DiscordMiddleware::Channel

Overview

Matches the channel the message event was raised from based on several different attributes. If the client has a cache enabled, it will be used to resolve the channel the message came from.

Included Modules

Defined in:

discordcr-middleware/middleware/channel.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : UInt64? = nil, name : String? = nil, topic : String? = nil, nsfw : Bool? = nil, guild_id : UInt64? = nil, type : Discord::ChannelType? = nil) #

[View source]

Instance Method Detail

def call(payload : Discord::Message, context : Discord::Context, &block) #

[View source]