mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-16 11:28:15 +00:00
fixes
This commit is contained in:
@@ -17,7 +17,10 @@ import { PermissionOverwrite } from "../types/guild.ts";
|
|||||||
import { MessageCreateOptions } from "../types/message.ts";
|
import { MessageCreateOptions } from "../types/message.ts";
|
||||||
import { Permissions } from "../types/permission.ts";
|
import { Permissions } from "../types/permission.ts";
|
||||||
import { endpoints } from "../utils/constants.ts";
|
import { endpoints } from "../utils/constants.ts";
|
||||||
import { botHasChannelPermissions, calculateBits } from "../utils/permissions.ts";
|
import {
|
||||||
|
botHasChannelPermissions,
|
||||||
|
calculateBits,
|
||||||
|
} from "../utils/permissions.ts";
|
||||||
|
|
||||||
/** Checks if a channel overwrite for a user id or a role id has permission in this channel */
|
/** Checks if a channel overwrite for a user id or a role id has permission in this channel */
|
||||||
export function channelOverwriteHasPermission(
|
export function channelOverwriteHasPermission(
|
||||||
|
|||||||
@@ -55,7 +55,10 @@ export function deleteServer(guildID: string) {
|
|||||||
|
|
||||||
/** Gets an array of all the channels ids that are the children of this category. */
|
/** Gets an array of all the channels ids that are the children of this category. */
|
||||||
export function categoryChildrenIDs(guildID: string, id: string) {
|
export function categoryChildrenIDs(guildID: string, id: string) {
|
||||||
return cacheHandlers.filter("channels", (channel) => channel.parentID === id && channel.guildID === guildID);
|
return cacheHandlers.filter(
|
||||||
|
"channels",
|
||||||
|
(channel) => channel.parentID === id && channel.guildID === guildID,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The full URL of the icon from Discords CDN. Undefined when no icon is set. */
|
/** The full URL of the icon from Discords CDN. Undefined when no icon is set. */
|
||||||
|
|||||||
@@ -34,7 +34,10 @@ export async function spawnShards(
|
|||||||
if (shardID >= lastShardID) return;
|
if (shardID >= lastShardID) return;
|
||||||
|
|
||||||
if (skipChecks) {
|
if (skipChecks) {
|
||||||
payload.shard = [shardID, data.shards];
|
payload.shard = [
|
||||||
|
shardID,
|
||||||
|
data.shards > lastShardID ? data.shards : lastShardID,
|
||||||
|
];
|
||||||
// Start The shard
|
// Start The shard
|
||||||
createShard(data, payload, false, shardID);
|
createShard(data, payload, false, shardID);
|
||||||
// Spawn next shard
|
// Spawn next shard
|
||||||
|
|||||||
Reference in New Issue
Block a user