class DiscordMiddleware::Author

Overview

Matches the author the message event was raised with based on several different attributes.

Included Modules

Defined in:

discordcr-middleware/middleware/author.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : UInt64? = nil, username : String? = nil, discriminator : String? = nil, bot : Bool? = nil) #

[View source]

Instance Method Detail

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

[View source]