discord-buttons
Advanced tools
Comparing version 2.3.3 to 2.4.1
{ | ||
"name": "discord-buttons", | ||
"version": "2.3.3", | ||
"version": "2.4.1", | ||
"description": "Discord.js buttons", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -94,3 +94,3 @@ const { sendAPICallback } = require('./APIMessage'); | ||
const raw = await this.webhook.fetchMessage('@original'); | ||
return this.channel ? this.channel.messages.add(raw) : undefined ?? raw; | ||
return this.channel ? this.channel.messages.add(raw) : raw; | ||
} | ||
@@ -101,3 +101,3 @@ | ||
const raw = await this.webhook.editMessage('@original', content, options); | ||
return this.channel ? this.channel.messages.add(raw) : undefined ?? raw; | ||
return this.channel ? this.channel.messages.add(raw) : raw; | ||
} | ||
@@ -104,0 +104,0 @@ |
@@ -33,4 +33,4 @@ const { WebhookClient } = require('discord.js'); | ||
const data = await this.client.api.webhooks(this.id, this.token).messages(message).get(); | ||
return this.client.channels ? (this.client.channels.cache.get(data.channel_id) ? this.client.channels.cache.get(data.channel_id).messages.add(data, cache) : null) : undefined ?? data; | ||
return this.client.channels ? (this.client.channels.cache.get(data.channel_id) ? this.client.channels.cache.get(data.channel_id).messages.add(data, cache) : null) : data; | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27092