mirror of
https://github.com/danbulant/discord.js
synced 2026-07-05 03:00:35 +00:00
Try and fix author bug?
This commit is contained in:
parent
aee547d28e
commit
552d603782
3 changed files with 9 additions and 7 deletions
File diff suppressed because one or more lines are too long
|
|
@ -312,11 +312,13 @@ class Guild {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
if (data.owner_id) {
|
||||||
* The owner of the guild
|
/**
|
||||||
* @type {GuildMember}
|
* The owner of the guild
|
||||||
*/
|
* @type {GuildMember}
|
||||||
this.owner = this.members.get(data.owner_id);
|
*/
|
||||||
|
this.owner = this.members.get(data.owner_id);
|
||||||
|
}
|
||||||
|
|
||||||
if (data.channels) {
|
if (data.channels) {
|
||||||
this.channels.clear();
|
this.channels.clear();
|
||||||
|
|
|
||||||
|
|
@ -112,7 +112,7 @@ client.on('message', msg => {
|
||||||
msg.channel.sendMessage('```' + msg.content + '```');
|
msg.channel.sendMessage('```' + msg.content + '```');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg.content.startsWith('?eval') && msg.author.id === '66564597481480192') {
|
if (msg.content.startsWith('#eval') && msg.author.id === '66564597481480192') {
|
||||||
try {
|
try {
|
||||||
const com = eval(msg.content.split(" ").slice(1).join(" "));
|
const com = eval(msg.content.split(" ").slice(1).join(" "));
|
||||||
msg.channel.sendMessage('```\n' + com + '```');
|
msg.channel.sendMessage('```\n' + com + '```');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue