Skip to content
This repository was archived by the owner on Jul 19, 2021. It is now read-only.

Commit 8543e53

Browse files
committed
chore: prevent or ignore eslint warnings where appropriate
1 parent 50fe27d commit 8543e53

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

guide/popular-topics/reactions.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ Using `.find()`, your code would look something like this:
7070

7171
```js
7272
if (message.content === '!react-custom') {
73-
const emoji = message.guild.emojis.find(emoji => emoji.name === 'ayy');
74-
message.react(emoji);
73+
const reactionEmoji = message.guild.emojis.find(emoji => emoji.name === 'ayy');
74+
message.react(reactionEmoji);
7575
}
7676
```
7777

@@ -80,8 +80,8 @@ if (message.content === '!react-custom') {
8080

8181
```js
8282
if (message.content === '!react-custom') {
83-
const emoji = message.guild.emojis.cache.find(emoji => emoji.name === 'ayy');
84-
message.react(emoji);
83+
const reactionEmoji = message.guild.emojis.cache.find(emoji => emoji.name === 'ayy');
84+
message.react(reactionEmoji);
8585
}
8686
```
8787

@@ -93,8 +93,8 @@ Using `.get()`, your code would look something like this:
9393

9494
```js
9595
if (message.content === '!react-custom') {
96-
const emoji = client.emojis.get(config.emojiID);
97-
message.react(emoji);
96+
const reactionEmoji = client.emojis.get(config.emojiID);
97+
message.react(reactionEmoji);
9898
}
9999
```
100100

@@ -103,8 +103,8 @@ if (message.content === '!react-custom') {
103103

104104
```js
105105
if (message.content === '!react-custom') {
106-
const emoji = client.emojis.cache.get(config.emojiID);
107-
message.react(emoji);
106+
const reactionEmoji = client.emojis.cache.get(config.emojiID);
107+
message.react(reactionEmoji);
108108
}
109109
```
110110

guide/popular-topics/webhooks.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ If you would like to read about how to use webhooks through the API without disc
1414

1515
Bots receive webhook messages in a text channel normally. You can detect if the message was sent by a webhook by simply checking if the `Message.webhookID` is not `null`. In this example we return if the message was sent by a webhook.
1616

17+
<!-- eslint-skip -->
1718
```js
1819
if (message.webhookID) return;
1920
```

0 commit comments

Comments
 (0)