Added more node name fallbacks, move slash command acknowledge to beginning of image command
This commit is contained in:
parent
0095643dbf
commit
df43f9eb9d
6 changed files with 9 additions and 7 deletions
|
@ -4,7 +4,7 @@ import Command from "../../classes/command.js";
|
|||
class AncientCommand extends Command {
|
||||
async run() {
|
||||
await this.acknowledge();
|
||||
const controller = new AbortController(); // eslint-disable-line no-undef
|
||||
const controller = new AbortController();
|
||||
const timeout = setTimeout(() => {
|
||||
controller.abort();
|
||||
}, 15000);
|
||||
|
|
|
@ -4,7 +4,7 @@ import Command from "../../classes/command.js";
|
|||
class CatCommand extends Command {
|
||||
async run() {
|
||||
await this.acknowledge();
|
||||
const controller = new AbortController(); // eslint-disable-line no-undef
|
||||
const controller = new AbortController();
|
||||
const timeout = setTimeout(() => {
|
||||
controller.abort();
|
||||
}, 15000);
|
||||
|
|
|
@ -5,7 +5,7 @@ class DonateCommand extends Command {
|
|||
async run() {
|
||||
await this.acknowledge();
|
||||
let prefix = "";
|
||||
const controller = new AbortController(); // eslint-disable-line no-undef
|
||||
const controller = new AbortController();
|
||||
const timeout = setTimeout(() => {
|
||||
controller.abort();
|
||||
}, 5000);
|
||||
|
|
|
@ -31,7 +31,7 @@ class NowPlayingCommand extends MusicCommand {
|
|||
},
|
||||
{
|
||||
name: "🌐 Node:",
|
||||
value: player.node.name
|
||||
value: player.node ? player.node.name : "Unknown"
|
||||
},
|
||||
{
|
||||
name: `${"▬".repeat(parts)}🔘${"▬".repeat(10 - parts)}`,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue