From cfd972557d276ee81bb5a5abc05a1a11ca6b2ba7 Mon Sep 17 00:00:00 2001 From: SadlyNotSappho Date: Fri, 10 Feb 2023 19:24:03 -0800 Subject: [PATCH] aaaaaaaaaaaaaaaaaa --- package.json | 2 +- src/commands/ping.ts | 2 +- src/commands/test.ts | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 471b244..0b73039 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "discord-button-roles", "version": "1.0.0", "main": "dist/index.js", - "author": "@sapphire", + "author": "SadlyNotSappho", "license": "LGPL-3.0", "scripts": { "build": "tsc", diff --git a/src/commands/ping.ts b/src/commands/ping.ts index e6e344a..bb05b83 100644 --- a/src/commands/ping.ts +++ b/src/commands/ping.ts @@ -14,7 +14,7 @@ export class UserCommand extends Command { .setDescription(this.description); }, { - guildIds: ['1030563119132594187'] + // guildIds: [] // idHints: [] } ); diff --git a/src/commands/test.ts b/src/commands/test.ts index fa41569..f352e35 100644 --- a/src/commands/test.ts +++ b/src/commands/test.ts @@ -19,5 +19,9 @@ export class UserCommand extends Command { } ]}] }); + + await message.guild?.commands.fetch() + + console.log('message.guild.commands.cache, after fetching:', message.guild?.commands.cache) } }