Don't throw an error if user cannot be DMed
parent
8623ea288a
commit
80d1f5a7dd
|
@ -44,7 +44,7 @@ export default class Unlock extends Command {
|
||||||
this.client.getDMChannel(account.userID).then((user) => {
|
this.client.getDMChannel(account.userID).then((user) => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
user.createMessage({ embed });
|
user.createMessage({ embed });
|
||||||
});
|
}).catch();
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
this.client.createMessage('580950455581147146', { embed });
|
this.client.createMessage('580950455581147146', { embed });
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
Loading…
Reference in New Issue