Skip to content

Commit

Permalink
credo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3-M4jor committed Sep 9, 2023
1 parent c537bb1 commit fb8ca08
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/adjutant/command/slash/psycho_effects.ex
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,19 @@ defmodule Adjutant.Command.Slash.PsychoEffects do
end

defp allow(inter) do
{channel_id, _channel_data} = inter.data.resolved.channels |> Map.to_list() |> List.first()
{channel_id, _channel_data} =
inter.data.resolved.channels
|> Map.to_list()
|> List.first()

Adjutant.PsychoEffects.Channel.allow_channel(channel_id)
end

def deny(inter) do
{channel_id, channel_data} = inter.data.resolved.channels |> Map.to_list() |> List.first()
{channel_id, channel_data} =
inter.data.resolved.channels
|> Map.to_list()
|> List.first()

guild_id = channel_data.guild_id
user_id = inter.member.user_id
Expand Down

0 comments on commit fb8ca08

Please sign in to comment.