Skip to content

Commit

Permalink
fix(djs12): additional fixes for djs12, doc for control webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiah committed Mar 30, 2020
1 parent 8bf5fc4 commit 76c4054
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ SHARDS | Total number of shards | 1 | 1
OWNER | ID of the person owning/running the bot, used for checking permissions
PREFIX | Default prefix to use for the instance | `\` | `\`
RAVEN_URL | DSN url for logging data to Sentry | `'https://***:***@sentry.io/***'` | N\A
CONTROL_WH_ID | Webhook id for the control webhook for system notifications | '0293485092348490834' | N\A
CONTROL_WH_TOKEN | Webhook token for the control webhook for system notifications | `asdpiofja[ospdj34095u8340wpodfj+_asdf-oja` |N\A

### Stats tracking
Environment Variable | Description | Example | Default
Expand All @@ -80,7 +82,7 @@ Environment Variable | Description | Example | Default
EMBED_URL | Default link that embeds use in their title | `https://warframestat.us` | `https://warframestat.us`
EMBED_ICON_URL | Default icon URL that embeds use in their footer | `https://warframestat.us/wfcd_logo_color.png` | `https://warframestat.us/wfcd_logo_color.png`
BASE_PRES_MSG | Default presence message | `@Bot help` | `@Bot help`
BASE_PRES_ACT | Default presence activity | `WATCHING` | `PLAYING`
BASE_PRES_ACT | Default presence activity. Must be a valid discord.js value | `WATCHING` | `PLAYING`

### Feature Flags

Expand Down
2 changes: 1 addition & 1 deletion src/settings/DatabaseQueries/BlacklistQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class BlacklistQueries {
const res = await this.db.query(query);
if (res[0]) {
return res[0]
.map(result => this.bot.client.users.get(result.user_id))
.map(result => this.bot.client.users.cache.get(result.user_id))
.filter(user => user);
}
return [];
Expand Down
2 changes: 1 addition & 1 deletion src/settings/DatabaseQueries/SettingsQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ class SettingsQueries {
*/
async deleteGuildSetting(guild, setting) {
const promises = [];
guild.channels.forEach((channel) => {
guild.channels.cache.forEach((channel) => {
promises.push(this.deleteChannelSetting(channel, setting));
});
return Promise.all(promises);
Expand Down

0 comments on commit 76c4054

Please sign in to comment.