class Abartos::Application

Defined in:

abartos/application.cr
abartos/application/client.cr
abartos/application/interaction.cr
abartos/application/webhook.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(*, client_id : Snowflake | String, client_secret : String, public_key : String | Bytes) #

[View source]

Instance Method Detail

def add_callback(uuid : UUID, proc : Callback) #

[View source]
def add_service(id : String, &proc : ServiceCallback) : Service #

[View source]
def button(label : String | Nil = nil, style : Symbol | Nil = nil, &block : Callback) #

[View source]
def button(label : String | Nil = nil, style : Symbol | Nil = nil, *, service : Service) #

[View source]

[View source]
def digest_interaction(ctx : HTTP::Server::Context) #

[View source]
def exchange_webhook_access_token(code : String, redirect_uri : String) : WebhookAccessTokenResponse | Nil #

[View source]