question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature]: support for discord-logs

See original GitHub issue

Feature?

I’d love to see support for discord-logs built in so I could use the On decorator with their added events.

Package

discordx

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Satontcommented, May 15, 2022

Workround:

Create discord-logs.d.ts file inside of your src with content:

import 'discord.js';

declare module 'discord.js' {
  interface ClientEvents {
    guildChannelPermissionsUpdate: [GuildChannel, PermissionOverwrites, PermissionOverwrites];
    guildChannelTopicUpdate: [GuildChannel, string, string];
    unhandledGuildChannelUpdate: [GuildChannel, GuildChannel];
    guildMemberBoost: [GuildMember];
    guildMemberUnboost: [GuildMember];
    guildMemberRoleAdd: [GuildMember, Role];
    guildMemberRoleRemove: [GuildMember, Role];
    guildMemberNicknameUpdate: [GuildMember, string, string];
    unhandledGuildMemberUpdate: [GuildMember, GuildMember];
    guildBoostLevelUp: [Guild, number, number];
    guildBoostLevelDown: [Guild, number, number];
    guildRegionUpdate: [Guild, string, string];
    guildBannerAdd: [Guild, string];
    guildAfkChannelAdd: [Guild, string];
    guildVanityURLAdd: [Guild, string];
    guildVanityURLRemove: [Guild, string];
    guildVanityURLUpdate: [Guild, string, string];
    guildFeaturesUpdate: [Guild, Guild];
    guildAcronymUpdate: [Guild, Guild];
    guildOwnerUpdate: [Guild, Guild];
    guildPartnerAdd: [Guild];
    guildPartnerRemove: [Guild];
    guildVerificationAdd: [Guild];
    guildVerificationRemove: [Guild];
    unhandledGuildUpdate: [Guild, Guild];
    messagePinned: [Message];
    messageContentEdited: [Message, string, string];
    unhandledMessageUpdate: [Message, Message];
    guildMemberOffline: [GuildMember, Status];
    guildMemberOnline: [GuildMember, Status];
    unhandledPresenceUpdate: [Presence, Presence];
    rolePositionUpdate: [Role, number, number];
    rolePermissionsUpdate: [Role, number, number];
    unhandledRoleUpdate: [Role, Role];
    userAvatarUpdate: [User, string, string];
    userUsernameUpdate: [User, string, string];
    userDiscriminatorUpdate: [User, string, string];
    userFlagsUpdate: [User, string, string];
    unhandledUserUpdate: [User, User];
    voiceChannelJoin: [GuildMember, VoiceChannel];
    voiceChannelLeave: [GuildMember, VoiceChannel];
    voiceChannelSwitch: [GuildMember, VoiceChannel, VoiceChannel];
    voiceChannelMute: [GuildMember, boolean];
    voiceChannelUnmute: [GuildMember, boolean];
    voiceChannelDeaf: [GuildMember, boolean];
    voiceChannelUndeaf: [GuildMember, boolean];
    voiceStreamingStart: [GuildMember, VoiceChannel];
    voiceStreamingStop: [GuildMember, VoiceChannel];
    unhandledVoiceStateUpdate: [VoiceState, VoiceState];
  }
}

After that both @On() and ArgsOf will have typings for those events.

1reaction
VictoriqueMoecommented, May 15, 2022

That said. I like it. I just worry about how dead it is. Maybe we can fork it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Discord Developer Portal — Documentation — Audit Log
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Read more >
New Audit Log Feature Idea - Discord Support
New Audit Log Feature Idea ... Add a feature where you will be able to view past and present server built in audit...
Read more >
Discord Developer Portal — Documentation — Change Log
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
Read more >
[Feature Request] Allow for logging of messages on ALL ...
Allow for a remote program to access the messages as the official Discord client receives them. This would work but isn't optimal as...
Read more >
Your Discord Data Package
Note: If you need to check on the status of your data request, you can view your Support Ticket history by logging into...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found