Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update discord.js #87

Closed
diewellenlaenge opened this issue Sep 30, 2021 · 1 comment
Closed

Update discord.js #87

diewellenlaenge opened this issue Sep 30, 2021 · 1 comment
Assignees
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers spacktoberfest Label für Hacktoberfest, damit uns keiner auf die Nüsse geht

Comments

@diewellenlaenge
Copy link
Collaborator

discord.js ist alt. Muss neu (am besten auf einen Tag binden relativ aktuell mit Support für Slashcommands, Menus, Buttons etc.).

Problem: das Update hat breaking changes. Daher ist ein einfaches pullen von discord.js nicht ausreichend.

@diewellenlaenge diewellenlaenge added enhancement New feature or request good first issue Good for newcomers spacktoberfest Label für Hacktoberfest, damit uns keiner auf die Nüsse geht and removed enhancement New feature or request labels Sep 30, 2021
@twobiers
Copy link
Collaborator

twobiers commented Oct 1, 2021

Als Ergänzung hierzu. AFAIK ist der einzige relevante Breaking Change, dass wir die Gateway Intents spezifizieren müssen:

Das heißt entweder explizit:

const client = new Discord.Client({ intents: [Discord.Intents.FLAGS.GUILDS, Discord.Intents.FLAGS.GUILD_MEMBERS, Discord.Intents.FLAGS.GUILD_INTEGRATIONS, Discord.Intents.FLAGS.GUILD_MESSAGES, Discord.Intents.FLAGS.GUILD_MESSAGE_REACTIONS, Discord.Intents.FLAGS.DIRECT_MESSAGES] });

Oder einfach yolo alle:

const client = new Discord.Client({ intents: [Discord.Intents.ALL] });

https://github.com/diewellenlaenge/CSC-Bot/blob/slash-commands-ts/src/app.js#L49

@twobiers twobiers added the dependencies Pull requests that update a dependency file label Oct 1, 2021
@twobiers twobiers self-assigned this Oct 2, 2021
@twobiers twobiers closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file good first issue Good for newcomers spacktoberfest Label für Hacktoberfest, damit uns keiner auf die Nüsse geht
Projects
None yet
Development

No branches or pull requests

2 participants