Skip to content

Commit

Permalink
from [{:key, value}] style to [key: value] style
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniAppleTheApple committed Aug 3, 2024
1 parent f7eeada commit 15c7560
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
10 changes: 5 additions & 5 deletions lib/nostrum/struct/component/channel_select.ex
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ defmodule Nostrum.Struct.Component.ChannelSelect do

def channel_select(custom_id, opts \\ []) when is_binary(custom_id) do
[
{:custom_id, custom_id},
{:disabled, opts[:disabled]},
{:min_values, opts[:min_values]},
{:max_values, opts[:max_values]},
{:channel_types, opts[:channel_types]}
custom_id: custom_id,
disabled: opts[:disabled],
min_values: opts[:min_values],
max_values: opts[:max_values],
channel_types: opts[:channel_types],
]
|> new()
end
Expand Down
10 changes: 5 additions & 5 deletions lib/nostrum/struct/component/mentionable_select.ex
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ defmodule Nostrum.Struct.Component.MentionableSelect do

def mentionable_select(custom_id, opts \\ []) when is_binary(custom_id) do
[
{:custom_id, custom_id},
{:disabled, opts[:disabled]},
{:placeholder, opts[:placeholder]},
{:min_values, opts[:min_values]},
{:max_values, opts[:max_values]}
custom_id: custom_id,
disabled: opts[:disabled],
placeholder: opts[:placeholder],
min_values: opts[:min_values],
max_values: opts[:max_values],
]
|> new()
end
Expand Down
10 changes: 5 additions & 5 deletions lib/nostrum/struct/component/role_select.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ defmodule Nostrum.Struct.Component.RoleSelect do

def mentionable_select(custom_id, opts \\ []) when is_binary(custom_id) do
[
{:custom_id, custom_id},
{:disabled, opts[:disabled]},
{:placeholder, opts[:placeholder]},
{:min_values, opts[:min_values]},
{:max_values, opts[:max_values]}
custom_id: custom_id,
disabled: opts[:disabled],
placeholder: opts[:placeholder],
min_values: opts[:min_values],
max_values: opts[:max_values],
]
|> new()
end
Expand Down
10 changes: 5 additions & 5 deletions lib/nostrum/struct/component/user_select.ex
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ defmodule Nostrum.Struct.Component.UserSelect do

def mentionable_select(custom_id, opts \\ []) when is_binary(custom_id) do
[
{:custom_id, custom_id},
{:disabled, opts[:disabled]},
{:placeholder, opts[:placeholder]},
{:min_values, opts[:min_values]},
{:max_values, opts[:max_values]}
custom_id: custom_id,
disable: opts[:disabled],
placeholder: opts[:placeholder],
min_values: opts[:min_values],
max_values: opts[:max_values],
]
|> new()
end
Expand Down

0 comments on commit 15c7560

Please sign in to comment.