mirror of
https://github.com/TheRealOwenRees/plantid-discord-bot.git
synced 2026-07-23 12:36:58 +00:00
reworked aliases
This commit is contained in:
@@ -4,10 +4,9 @@ defmodule PlantIdDiscordBot.Consumer do
|
||||
"""
|
||||
use Nostrum.Consumer
|
||||
alias Nostrum.Api
|
||||
alias PlantIdDiscordBot.Cog
|
||||
alias PlantIdDiscordBot.Consumer.Commands
|
||||
alias PlantIdDiscordBot.{Cog, Consumer}
|
||||
|
||||
@global_application_commands Commands.global_application_commands()
|
||||
@global_application_commands Consumer.Commands.global_application_commands()
|
||||
|
||||
def handle_event({:READY, _data, _ws_state}) do
|
||||
Api.create_global_application_command(@global_application_commands)
|
||||
|
||||
Reference in New Issue
Block a user