diff --git a/services/discord/discord.service.js b/services/discord/discord.service.js index ca58be83d9..7e510d0cad 100644 --- a/services/discord/discord.service.js +++ b/services/discord/discord.service.js @@ -25,43 +25,31 @@ const documentation = ` ` module.exports = class Discord extends BaseJsonService { - static get category() { - return 'chat' + static category = 'chat' + + static route = { + base: 'discord', + pattern: ':serverId', } - static get route() { - return { - base: 'discord', - pattern: ':serverId', - } + static auth = { + passKey: 'discord_bot_token', + authorizedOrigins: ['https://discord.com'], + isRequired: false, } - static get auth() { - return { - passKey: 'discord_bot_token', - authorizedOrigins: ['https://discord.com'], - isRequired: false, - } - } + static examples = [ + { + title: 'Discord', + namedParams: { serverId: '102860784329052160' }, + staticPreview: this.render({ members: 23 }), + documentation, + }, + ] - static get examples() { - return [ - { - title: 'Discord', - namedParams: { serverId: '102860784329052160' }, - staticPreview: this.render({ members: 23 }), - documentation, - }, - ] - } + static _cacheLength = 30 - static get _cacheLength() { - return 30 - } - - static get defaultBadgeData() { - return { label: 'chat' } - } + static defaultBadgeData = { label: 'chat' } static render({ members }) { return {