Skip to content

Commit

Permalink
fix: fix invalid types
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC committed Aug 16, 2019
1 parent bee289c commit 1d96805
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
11 changes: 6 additions & 5 deletions lib/rest.ex
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,12 @@ defmodule Crux.Rest do
optional(:name) => String.t(),
optional(:roles) => [Role.t() | Crux.Rest.snowflake()],
optional(:reason) => String.t()
} :: [
{:name, String.t()}
| {:roles, [Role.t() | Crux.Rest.snowflake()]}
| {:reason, String.t()}
]
}
| [
{:name, String.t()}
| {:roles, [Role.t() | Crux.Rest.snowflake()]}
| {:reason, String.t()}
]

@doc """
Modifies a guild emoji.
Expand Down
5 changes: 1 addition & 4 deletions lib/rest/util.ex
Original file line number Diff line number Diff line change
Expand Up @@ -367,10 +367,7 @@ defmodule Crux.Rest.Util do
Channel.t()
| %{channel: Channel.t(), position: integer()}
| {Crux.Rest.snowflake(), integer()}
| %{id: Crux.Rest.snowflake(), position: integer()} :: %{
id: Crux.Rest.snowflake(),
position: integer()
}
| %{id: Crux.Rest.snowflake(), position: integer()}

@doc ~S"""
Resolves a `t:channel_position_resolvable/0` into a channel position.
Expand Down

0 comments on commit 1d96805

Please sign in to comment.