discord_gleam

Functions

pub fn ban_member(
  bot: Bot,
  guild_id: String,
  user_id: String,
  reason: String,
) -> #(String, String)
pub fn bot(token: String) -> Bot
pub fn delete_message(
  bot: Bot,
  channel_id: String,
  message_id: String,
  reason: String,
) -> #(String, String)
pub fn interaction_reply_message(
  interaction: InteractionCreate,
  message: String,
) -> #(String, String)
pub fn kick_member(
  bot: Bot,
  guild_id: String,
  user_id: String,
  reason: String,
) -> #(String, String)
pub fn register_commands(
  bot: Bot,
  client_id: String,
  commands: List(SlashCommand),
) -> Nil
pub fn run(
  bot: Bot,
  event_handlers: List(fn(Bot, Packet) -> Nil),
) -> Nil
pub fn send_message(
  bot: Bot,
  channel_id: String,
  message: String,
  embeds: List(Embed),
) -> Nil
Search Document