Disable Presence Update

This commit is contained in:
Daniel Odendahl Jr
2017-09-23 13:46:52 +00:00
parent 4e0d87955c
commit a99ae3945e
3 changed files with 4 additions and 10 deletions
+1 -1
View File
@@ -7,7 +7,7 @@ const client = new Client({
invite: INVITE,
disableEveryone: true,
unknownCommandResponse: false,
disabledEvents: ['TYPING_START'],
disabledEvents: ['TYPING_START', 'PRESENCE_UPDATE'],
messageCacheLifetime: 600,
messageSweepInterval: 120
});
+2 -8
View File
@@ -1,11 +1,5 @@
const Command = require('../../structures/Command');
const { MessageEmbed } = require('discord.js');
const statuses = {
online: '<:online:313956277808005120> Online',
idle: '<:away:313956277220802560> Idle',
dnd: '<:dnd:313956276893646850> Do Not Disturb',
offline: '<:offline:313956277237710868> Offline'
};
module.exports = class UserInfoCommand extends Command {
constructor(client) {
@@ -43,8 +37,8 @@ module.exports = class UserInfoCommand extends Command {
member.joinedAt.toDateString(), true)
.addField(' Nickname',
member.nickname || 'None', true)
.addField(' Status',
statuses[member.presence.status], true)
.addField(' Bot?',
member.user.bot ? 'Yes' : 'No', true)
.addField(' Highest Role',
member.highestRole.name !== '@everyone' ? member.highestRole.name : 'None', true)
.addField(' Hoist Role',
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "42.5.0",
"version": "42.5.1",
"description": "Your personal server companion.",
"main": "Shard.js",
"scripts": {