New Event (userSettingsUpdate)

This commit is contained in:
March 7th 2022-04-29 12:12:50 +07:00
parent 9ee3f1e0c3
commit 80115acecd
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
'use strict'; 'use strict';
const { Events } = require('../../../util/Constants');
module.exports = (client, { d: data }) => { module.exports = (client, { d: data }) => {
client.setting._patch(data); client.setting._patch(data);
return client.emit(Events.USER_SETTINGS_UPDATE, data);
}; };

2
typings/index.d.ts vendored
View File

@ -4147,6 +4147,7 @@ export interface ClientEvents extends BaseClientEvents {
threadUpdate: [oldThread: ThreadChannel, newThread: ThreadChannel]; threadUpdate: [oldThread: ThreadChannel, newThread: ThreadChannel];
typingStart: [typing: Typing]; typingStart: [typing: Typing];
userUpdate: [oldUser: User | PartialUser, newUser: User]; userUpdate: [oldUser: User | PartialUser, newUser: User];
userSettingsUpdate: [setting: RawUserSettingsData];
voiceStateUpdate: [oldState: VoiceState, newState: VoiceState]; voiceStateUpdate: [oldState: VoiceState, newState: VoiceState];
webhookUpdate: [channel: TextChannel | NewsChannel]; webhookUpdate: [channel: TextChannel | NewsChannel];
/** @deprecated Use interactionCreate instead */ /** @deprecated Use interactionCreate instead */
@ -4393,6 +4394,7 @@ export interface ConstantsEvents {
THREAD_MEMBER_UPDATE: 'threadMemberUpdate'; THREAD_MEMBER_UPDATE: 'threadMemberUpdate';
THREAD_MEMBERS_UPDATE: 'threadMembersUpdate'; THREAD_MEMBERS_UPDATE: 'threadMembersUpdate';
USER_UPDATE: 'userUpdate'; USER_UPDATE: 'userUpdate';
USER_SETTINGS_UPDATE: 'userSettingsUpdate';
PRESENCE_UPDATE: 'presenceUpdate'; PRESENCE_UPDATE: 'presenceUpdate';
VOICE_SERVER_UPDATE: 'voiceServerUpdate'; VOICE_SERVER_UPDATE: 'voiceServerUpdate';
VOICE_STATE_UPDATE: 'voiceStateUpdate'; VOICE_STATE_UPDATE: 'voiceStateUpdate';