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

Implement Allowed Mentions #649

Merged
merged 3 commits into from
Mar 19, 2020
Merged

Implement Allowed Mentions #649

merged 3 commits into from
Mar 19, 2020

Conversation

LJNeon
Copy link
Contributor

@LJNeon LJNeon commented Mar 4, 2020

Implemented Allowed Mentions. Since this functionality entirely covers the use cases of disableEveryone, I replaced it entirely. Feedback and testing for this PR would be appreciated.

index.d.ts Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
lib/Client.js Outdated Show resolved Hide resolved
Copy link
Contributor

@Khaaz Khaaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! That's also how I would have done it.
As this feature is due to a breaking change in Discord API I'm also inclined to entirely remove disableEveryone.

However if we want to still support legacy behavior, we could manually add "everyone" if they still pass disableEveryone and it is explicitely set to false.
I personally don't think we should do this as, at worst it will just suppress everyone mention for everyone and this feature looks like a big change in DAPI and can probably also be for users wanting to use last eris version.

@Khaaz
Copy link
Contributor

Khaaz commented Mar 4, 2020

Also, this ref discord/discord-api-docs#1396

@Khaaz Khaaz mentioned this pull request Mar 8, 2020
7 tasks
@abalabahaha abalabahaha merged commit ebce8dd into abalabahaha:dev Mar 19, 2020
@LJNeon LJNeon deleted the dev2 branch May 4, 2020 20:23
Thewsomeguy pushed a commit to Thewsomeguy/eris that referenced this pull request May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants