cronokirby / alchemy

A discord library for Elixir
MIT License
151 stars 34 forks source link

Fix aliases #66

Closed Awlexus closed 5 years ago

Awlexus commented 5 years ago

Fixes aliases / namespaces for the DMChannel struct. Direct messages work again. Tested with the following function:

Cogs.def hello do
  with {:ok, %Alchemy.Channel.DMChannel{id: chan_id}} = Client.create_DM(message.author.id) do
    Client.send_message(chan_id, "Hello there")
  end
end