mirror of
https://github.com/danbulant/Shasha
synced 2026-05-20 12:38:48 +00:00
remove defaultErrorLogChannel
This commit is contained in:
parent
6855e0ddd6
commit
f4e507e9f9
2 changed files with 2 additions and 3 deletions
|
|
@ -21,7 +21,6 @@
|
|||
"000000",
|
||||
16777214
|
||||
],
|
||||
"defaultErrorLogChannel": "822877910138224660",
|
||||
"mongoServer": "mongodb://localhost:27017",
|
||||
"chatChannel": "837178237322919966",
|
||||
"guildLog": "840154722434154496",
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
'use strict';
|
||||
|
||||
const { MessageEmbed, Message, GuildMember, User, GuildChannel, Role, MessageOptions, TextChannel, DMChannel, Guild, Channel } = require('discord.js');
|
||||
const { defaultErrorLogChannel, ranLogger } = require("../config.json");
|
||||
const { errLogChannel, ranLogger } = require("../config.json");
|
||||
const { timestampAt } = require('./debug');
|
||||
const getColor = require('./getColor');
|
||||
const { randomColors } = require("../config.json");
|
||||
|
|
@ -42,7 +42,7 @@ async function errLog(theError, msg, client, sendTheError, errorMessage, notify)
|
|||
if (client) {
|
||||
inLogChannel = inLogChannel + '```js\n' + theError.stack + '```';
|
||||
try {
|
||||
const sendAt = client.channels.cache.get(defaultErrorLogChannel);
|
||||
const sendAt = client.channels.cache.get(errLogChannel);
|
||||
sendAt.send(logThis + inLogChannel.trim() + timestampAt(client), {
|
||||
split: {
|
||||
maxLength: 2000, char: "\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue