This commit is contained in:
Erik 2022-04-25 16:22:10 +03:00
parent 723d0c693e
commit fa66e296f4
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB

View File

@ -60,6 +60,7 @@ class ImportCommand extends SlashCommand {
const { webhook } = imported; const { webhook } = imported;
if (webhook) { if (webhook) {
console.log(webhook);
if (typeof webhook === 'string') { if (typeof webhook === 'string') {
const hooks = await guild.fetchWebhooks(); const hooks = await guild.fetchWebhooks();
const hook = hooks.get(webhook); const hook = hooks.get(webhook);