mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
Commit from GitHub Actions (Lint)
This commit is contained in:
@@ -22,7 +22,7 @@ import { hasOwnProperty, snakelize } from "../../util/utils.ts";
|
|||||||
export async function editChannel(
|
export async function editChannel(
|
||||||
channelId: bigint,
|
channelId: bigint,
|
||||||
options: ModifyChannel | ModifyThread,
|
options: ModifyChannel | ModifyThread,
|
||||||
reason?: string
|
reason?: string,
|
||||||
) {
|
) {
|
||||||
const channel = await cacheHandlers.get("channels", channelId);
|
const channel = await cacheHandlers.get("channels", channelId);
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ export async function editChannel(
|
|||||||
) {
|
) {
|
||||||
await requireOverwritePermissions(
|
await requireOverwritePermissions(
|
||||||
channel.guildId,
|
channel.guildId,
|
||||||
options.permissionOverwrites
|
options.permissionOverwrites,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -93,7 +93,7 @@ export async function editChannel(
|
|||||||
// deno-lint-ignore camelcase
|
// deno-lint-ignore camelcase
|
||||||
permission_overwrites: hasOwnProperty<ModifyChannel>(
|
permission_overwrites: hasOwnProperty<ModifyChannel>(
|
||||||
options,
|
options,
|
||||||
"permissionOverwrites"
|
"permissionOverwrites",
|
||||||
)
|
)
|
||||||
? options.permissionOverwrites?.map((overwrite) => {
|
? options.permissionOverwrites?.map((overwrite) => {
|
||||||
return {
|
return {
|
||||||
@@ -111,7 +111,7 @@ export async function editChannel(
|
|||||||
{
|
{
|
||||||
...payload,
|
...payload,
|
||||||
reason,
|
reason,
|
||||||
}
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
return await structures.createDiscordenoChannel(result);
|
return await structures.createDiscordenoChannel(result);
|
||||||
|
|||||||
Reference in New Issue
Block a user