@notenoughupdates/discord-akairo
Advanced tools
Comparing version
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.0.10-dev.1643166025.36345a6", | ||
"version": "9.0.10-dev.1643600672.1c7b4f9", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -50,3 +50,3 @@ "main": "./dist/src/index.js", | ||
"copyfiles": "^2.4.1", | ||
"discord-api-types": "0.26.1", | ||
"discord-api-types": "^0.26.1", | ||
"discord.js": "npm:@notenoughupdates/discord.js@dev", | ||
@@ -56,2 +56,3 @@ "eslint": "^8.7.0", | ||
"eslint-plugin-deprecation": "^1.3.2", | ||
"node-fetch": "^3.2.0", | ||
"prettier": "^2.5.1", | ||
@@ -58,0 +59,0 @@ "rimraf": "^3.0.2", |
/// <reference types="node" /> | ||
import { APIEmbed } from "discord-api-types"; | ||
import { BufferResolvable, Collection, Embed, Emoji, Guild, GuildChannel, GuildMember, MessageAttachment, PermissionString, Role, Snowflake, ThreadChannel, User } from "discord.js"; | ||
import { BufferResolvable, Collection, Embed, Emoji, Guild, GuildChannel, GuildMember, MessageAttachment, PermissionsString, Role, Snowflake, ThreadChannel, User } from "discord.js"; | ||
import type { Stream } from "stream"; | ||
@@ -99,3 +99,3 @@ import type AkairoClient from "./AkairoClient.js"; | ||
*/ | ||
permissionNames(): PermissionString[]; | ||
permissionNames(): PermissionsString[]; | ||
/** | ||
@@ -102,0 +102,0 @@ * Resolves a channel from a string, such as an ID, a name, or a mention. |
@@ -196,3 +196,3 @@ "use strict"; | ||
permissionNames() { | ||
return Object.keys(discord_js_1.Permissions.FLAGS); | ||
return Object.keys(discord_js_1.PermissionFlagsBits); | ||
} | ||
@@ -285,4 +285,4 @@ /** | ||
const resolved = []; | ||
for (const key of Object.keys(discord_js_1.Permissions.FLAGS)) { | ||
if (BigInt(number) & discord_js_1.Permissions.FLAGS[key]) | ||
for (const key of Object.keys(discord_js_1.PermissionFlagsBits)) { | ||
if (BigInt(number) & discord_js_1.PermissionFlagsBits[key]) | ||
resolved.push(key); | ||
@@ -289,0 +289,0 @@ } |
@@ -1,2 +0,2 @@ | ||
import { APIMessage } from "discord-api-types"; | ||
import { APIMessage } from "discord-api-types/v9"; | ||
import { Collection, InteractionReplyOptions, Message, MessageEditOptions, MessageOptions, MessagePayload, ReplyMessageOptions, Snowflake, WebhookEditMessageOptions } from "discord.js"; | ||
@@ -3,0 +3,0 @@ import AkairoMessage from "../../util/AkairoMessage.js"; |
{ | ||
"name": "@notenoughupdates/discord-akairo", | ||
"version": "9.0.10-dev.1643166025.36345a6", | ||
"version": "9.0.10-dev.1643600672.1c7b4f9", | ||
"description": "A highly customizable bot framework for Discord.js.", | ||
@@ -50,3 +50,3 @@ "main": "./dist/src/index.js", | ||
"copyfiles": "^2.4.1", | ||
"discord-api-types": "0.26.1", | ||
"discord-api-types": "^0.26.1", | ||
"discord.js": "npm:@notenoughupdates/discord.js@dev", | ||
@@ -56,2 +56,3 @@ "eslint": "^8.7.0", | ||
"eslint-plugin-deprecation": "^1.3.2", | ||
"node-fetch": "^3.2.0", | ||
"prettier": "^2.5.1", | ||
@@ -58,0 +59,0 @@ "rimraf": "^3.0.2", |
@@ -12,4 +12,4 @@ import { APIEmbed } from "discord-api-types"; | ||
MessageAttachment, | ||
Permissions, | ||
PermissionString, | ||
PermissionFlagsBits, | ||
PermissionsString, | ||
Role, | ||
@@ -252,4 +252,4 @@ Snowflake, | ||
*/ | ||
public permissionNames(): PermissionString[] { | ||
return Object.keys(Permissions.FLAGS) as (keyof typeof Permissions.FLAGS)[]; | ||
public permissionNames(): PermissionsString[] { | ||
return Object.keys(PermissionFlagsBits) as PermissionsString[]; | ||
} | ||
@@ -392,4 +392,4 @@ | ||
for (const key of Object.keys(Permissions.FLAGS)) { | ||
if (BigInt(number) & Permissions.FLAGS[key as keyof typeof Permissions.FLAGS]) resolved.push(key); | ||
for (const key of Object.keys(PermissionFlagsBits)) { | ||
if (BigInt(number) & PermissionFlagsBits[key as PermissionsString]) resolved.push(key); | ||
} | ||
@@ -396,0 +396,0 @@ |
/* eslint-disable require-await */ | ||
import { APIMessage } from "discord-api-types"; | ||
import { APIMessage } from "discord-api-types/v9"; | ||
import { | ||
@@ -4,0 +4,0 @@ Collection, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
963604
017
6.25%