chore: Add warnings about bot-only gateway events :(
This commit is contained in:
parent
b0f0ea4a3d
commit
289f812ec6
@ -15,6 +15,7 @@ class AutoModerationActionExecutionAction extends Action {
|
||||
* <info>This event requires the {@link Permissions.FLAGS.MANAGE_GUILD} permission.</info>
|
||||
* @event Client#autoModerationActionExecution
|
||||
* @param {AutoModerationActionExecution} autoModerationActionExecution The data of the execution
|
||||
* @deprecated This event is not received by user accounts.
|
||||
*/
|
||||
client.emit(Events.AUTO_MODERATION_ACTION_EXECUTION, new AutoModerationActionExecution(data, guild));
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ class AutoModerationRuleCreateAction extends Action {
|
||||
* <info>This event requires the {@link Permissions.FLAGS.MANAGE_GUILD} permission.</info>
|
||||
* @event Client#autoModerationRuleCreate
|
||||
* @param {AutoModerationRule} autoModerationRule The created auto moderation rule
|
||||
* @deprecated This event is not received by user accounts.
|
||||
*/
|
||||
client.emit(Events.AUTO_MODERATION_RULE_CREATE, autoModerationRule);
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ class AutoModerationRuleDeleteAction extends Action {
|
||||
* <info>This event requires the {@link Permissions.FLAGS.MANAGE_GUILD} permission.</info>
|
||||
* @event Client#autoModerationRuleDelete
|
||||
* @param {AutoModerationRule} autoModerationRule The deleted auto moderation rule
|
||||
* @deprecated This event is not received by user accounts.
|
||||
*/
|
||||
client.emit(Events.AUTO_MODERATION_RULE_DELETE, autoModerationRule);
|
||||
}
|
||||
|
@ -18,6 +18,7 @@ class AutoModerationRuleUpdateAction extends Action {
|
||||
* @event Client#autoModerationRuleUpdate
|
||||
* @param {?AutoModerationRule} oldAutoModerationRule The auto moderation rule before the update
|
||||
* @param {AutoModerationRule} newAutoModerationRule The auto moderation rule after the update
|
||||
* @deprecated This event is not received by user accounts.
|
||||
*/
|
||||
client.emit(Events.AUTO_MODERATION_RULE_UPDATE, oldAutoModerationRule, newAutoModerationRule);
|
||||
}
|
||||
|
8
typings/index.d.ts
vendored
8
typings/index.d.ts
vendored
@ -5136,9 +5136,13 @@ export interface ClientEvents extends BaseClientEvents {
|
||||
/** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */
|
||||
applicationCommandUpdate: [oldCommand: ApplicationCommand | null, newCommand: ApplicationCommand];
|
||||
applicationCommandPermissionsUpdate: [data: ApplicationCommandPermissionsUpdateData];
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
autoModerationActionExecution: [autoModerationActionExecution: AutoModerationActionExecution];
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
autoModerationRuleCreate: [autoModerationRule: AutoModerationRule];
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
autoModerationRuleDelete: [autoModerationRule: AutoModerationRule];
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
autoModerationRuleUpdate: [
|
||||
oldAutoModerationRule: AutoModerationRule | null,
|
||||
newAutoModerationRule: AutoModerationRule,
|
||||
@ -5441,9 +5445,13 @@ export interface ConstantsEvents {
|
||||
APPLICATION_COMMAND_PERMISSIONS_UPDATE: 'applicationCommandPermissionsUpdate';
|
||||
/** @deprecated See [this issue](https://github.com/discord/discord-api-docs/issues/3690) for more information. */
|
||||
APPLICATION_COMMAND_UPDATE: 'applicationCommandUpdate';
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
AUTO_MODERATION_ACTION_EXECUTION: 'autoModerationActionExecution';
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
AUTO_MODERATION_RULE_CREATE: 'autoModerationRuleCreate';
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
AUTO_MODERATION_RULE_DELETE: 'autoModerationRuleDelete';
|
||||
/** @deprecated This event is not received by user accounts. */
|
||||
AUTO_MODERATION_RULE_UPDATE: 'autoModerationRuleUpdate';
|
||||
GUILD_AVAILABLE: 'guildAvailable';
|
||||
GUILD_CREATE: 'guildCreate';
|
||||
|
Loading…
Reference in New Issue
Block a user