mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
feat: reimplement disableEveryone into disableMentions
* User input sanitation: reimplement disableEveryone into disableMentions * Change default value of ClientOptions#disableMentions to 'none' * Update type declarations of disableMentions to include default * update for compliance with ESLint * Overlooked these files. Updated for complete compliance with ESLint
This commit is contained in:
@@ -6,7 +6,7 @@ const client = new Discord.Client({
|
||||
// To see a difference, comment out disableMentions and run the same tests using disableEveryone
|
||||
// You will notice that all messages will mention @everyone
|
||||
//disableEveryone: true
|
||||
disableMentions: true
|
||||
disableMentions: 'everyone'
|
||||
});
|
||||
|
||||
const tests = [
|
||||
@@ -44,4 +44,4 @@ client.on('message', message => {
|
||||
message.reply(tests[2]);
|
||||
});
|
||||
|
||||
client.login(token).catch(console.error);
|
||||
client.login(token).catch(console.error);
|
||||
|
||||
Reference in New Issue
Block a user