mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-15 19:08:17 +00:00
refactor!: fix some spelling mistakes (#2144)
* refactor!: fix some spelling mistakes This fixes some spelling mistakes around the code base. Note not all are fixed. * subComponent
This commit is contained in:
@@ -5,7 +5,7 @@ import { OverwriteReadable } from "./editChannelOverwrite.ts";
|
||||
|
||||
/** Create a channel in your server. Bot needs MANAGE_CHANNEL permissions in the server. */
|
||||
export async function createChannel(bot: Bot, guildId: bigint, options?: CreateGuildChannel, reason?: string) {
|
||||
// BITRATES ARE IN THOUSANDS SO IF USER PROVIDES 32 WE CONVERT TO 32000
|
||||
// BITRATE IS IN THOUSANDS SO IF USER PROVIDES 32 WE CONVERT TO 32000
|
||||
if (options?.bitrate && options.bitrate < 1000) options.bitrate *= 1000;
|
||||
|
||||
const result = await bot.rest.runMethod<DiscordChannel>(
|
||||
|
||||
@@ -9,7 +9,7 @@ export async function editChannel(bot: Bot, channelId: bigint, options: ModifyCh
|
||||
if (options.name || options.topic) {
|
||||
const request = editChannelNameTopicQueue.get(channelId);
|
||||
if (!request) {
|
||||
// If this hasnt been done before simply add 1 for it
|
||||
// If this hasn't been done before simply add 1 for it
|
||||
editChannelNameTopicQueue.set(channelId, {
|
||||
channelId: channelId,
|
||||
amount: 1,
|
||||
|
||||
Reference in New Issue
Block a user