Create dm channel when sending message in dm channel
if there is no dm channel
This commit is contained in:
parent
47e7c107c1
commit
d2925a3aa9
1 changed files with 1 additions and 0 deletions
|
@ -68,6 +68,7 @@ export async function queueRequest(request: DiscordApi.Message | DiscordApi.Inte
|
||||||
if (userLimit !== false && userLimit.remaining <= 0) {
|
if (userLimit !== false && userLimit.remaining <= 0) {
|
||||||
if (request instanceof DiscordApi.Message) {
|
if (request instanceof DiscordApi.Message) {
|
||||||
request.react("🛑");
|
request.react("🛑");
|
||||||
|
if (!request.author.dmChannel) await request.author.createDM();
|
||||||
request.author.dmChannel?.send({
|
request.author.dmChannel?.send({
|
||||||
embeds: [{
|
embeds: [{
|
||||||
color: 0xff0000,
|
color: 0xff0000,
|
||||||
|
|
Loading…
Reference in a new issue