mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
Merge pull request #22 from EternallLight/master
Fixes issue #21 – "[ERROR]: 'type' is specified more than once"
This commit is contained in:
@@ -82,7 +82,6 @@ export const createGuild = (data: CreateGuildPayload) => {
|
||||
const result =
|
||||
(await RequestManager.post(endpoints.GUILD_CHANNELS(data.id), {
|
||||
name,
|
||||
type: options.type ? ChannelTypes[options.type] : undefined,
|
||||
permission_overwrites: options?.permission_overwrites
|
||||
? options.permission_overwrites.map((perm) => ({
|
||||
...perm,
|
||||
@@ -91,6 +90,7 @@ export const createGuild = (data: CreateGuildPayload) => {
|
||||
}))
|
||||
: undefined,
|
||||
...options,
|
||||
type: options.type ? ChannelTypes[options.type] : undefined,
|
||||
})) as ChannelCreatePayload;
|
||||
|
||||
const channel = createChannel(result);
|
||||
|
||||
Reference in New Issue
Block a user