mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
fix(InteractionResponses): spell messages correctly (#9080)
as well as `automatically` in Util.js
This commit is contained in:
@@ -147,7 +147,7 @@ class InteractionResponses {
|
|||||||
*/
|
*/
|
||||||
async editReply(options) {
|
async editReply(options) {
|
||||||
if (!this.deferred && !this.replied) throw new Error('INTERACTION_NOT_REPLIED');
|
if (!this.deferred && !this.replied) throw new Error('INTERACTION_NOT_REPLIED');
|
||||||
const message = await this.webhook.editMessage(options.messsage ?? '@original', options);
|
const message = await this.webhook.editMessage(options.message ?? '@original', options);
|
||||||
this.replied = true;
|
this.replied = true;
|
||||||
return message;
|
return message;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -660,7 +660,7 @@ class Util extends null {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Resolves the maximum time a guild's thread channels should automatcally archive in case of no recent activity.
|
* Resolves the maximum time a guild's thread channels should automatically archive in case of no recent activity.
|
||||||
* @param {Guild} guild The guild to resolve this limit from.
|
* @param {Guild} guild The guild to resolve this limit from.
|
||||||
* @deprecated This will be removed in the next major version.
|
* @deprecated This will be removed in the next major version.
|
||||||
* @returns {number}
|
* @returns {number}
|
||||||
|
|||||||
Reference in New Issue
Block a user