blob: 8f2018fa79e8d893f545aaf509f393510baffd01 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
defmodule Thulani.Command.Util do
alias Nostrum.Snowflake
@type qualified_channel :: {Snowflake.t(), Snowflake.t()}
defmacro __using__(_opts) do
mod = __MODULE__
quote do
alias unquote(mod)
end
end
defmacro command(word, rest, msg) do
quote do
{:cmd, " #{unquote(word)}" <> unquote(rest), unquote(msg)}
end
end
end
|