mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-23 21:52:45 -05:00
we are fluxerjs 2.2.0 :P
This commit is contained in:
1 parent
d667457881
commit
349cd26729
5 files changed
+26
-23
No files matched your search
@@ -59,7 +59,7 @@ export class Dashboard {
|
||||
|
||||
case "server": {
|
||||
try {
|
||||
const guild = await this.remix.client.guilds.fetch(data.key);
|
||||
const guild = await this.remix.client.guilds.fetch(data.key).catch(() => null);
|
||||
if (!guild) return { error: "Server not found" };
|
||||
const member = await guild.members.fetch(data.accessor).catch(() => null);
|
||||
const channels = await guild.fetchChannels();
|
||||
@@ -161,8 +161,8 @@ export class Dashboard {
|
||||
try {
|
||||
const chMgr = this.remix.client.channels;
|
||||
if (typeof chMgr.fetch === "function") {
|
||||
voiceChannel = await chMgr.fetch(params.data.channel);
|
||||
if (params.data.text) textChannel = await chMgr.fetch(params.data.text);
|
||||
voiceChannel = await chMgr.fetch(params.data.channel).catch(() => null);
|
||||
if (params.data.text) textChannel = await chMgr.fetch(params.data.text).catch(() => null);
|
||||
} else {
|
||||
voiceChannel = chMgr.get(params.data.channel);
|
||||
if (params.data.text) textChannel = chMgr.get(params.data.text);
|
||||
|
||||
Reference in new issue
Block a user