mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-23 13:44:59 +05:00
move to in-app emojis
This commit is contained in:
parent
a7af97b756
commit
8963681b30
3 changed files with 32 additions and 73 deletions
|
@ -86,14 +86,14 @@ class Report extends BaseCommand {
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
const success = parseEmoji(client.customEmojis.cool).id;
|
const cool = parseEmoji(client.customEmojis.cool).id;
|
||||||
const error = parseEmoji(client.customEmojis.notcool).id;
|
const notcool = parseEmoji(client.customEmojis.notcool).id;
|
||||||
|
|
||||||
repChannel.send({
|
repChannel.send({
|
||||||
embeds: [embed],
|
embeds: [embed],
|
||||||
}).then(async m => {
|
}).then(async m => {
|
||||||
await m.react(success);
|
await m.react(cool);
|
||||||
await m.react(error);
|
await m.react(notcool);
|
||||||
});
|
});
|
||||||
|
|
||||||
interaction.success("general/report:SUCCESS", {
|
interaction.success("general/report:SUCCESS", {
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
const { SlashCommandBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, PermissionsBitField } = require("discord.js");
|
const { SlashCommandBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, PermissionsBitField, parseEmoji } = require("discord.js");
|
||||||
const BaseCommand = require("../../base/BaseCommand");
|
const BaseCommand = require("../../base/BaseCommand");
|
||||||
|
|
||||||
class Poll extends BaseCommand {
|
class Poll extends BaseCommand {
|
||||||
|
@ -84,8 +84,8 @@ class Poll extends BaseCommand {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const cool = client.emojis.cache.find(e => e.name === client.customEmojis.cool.split(":")[1]);
|
const cool = parseEmoji(client.customEmojis.cool).id;
|
||||||
const notcool = client.emojis.cache.find(e => e.name === client.customEmojis.notcool.split(":")[1]);
|
const notcool = parseEmoji(client.customEmojis.notcool).id;
|
||||||
|
|
||||||
const embed = client.embed({
|
const embed = client.embed({
|
||||||
author: interaction.translate("moderation/poll:TITLE"),
|
author: interaction.translate("moderation/poll:TITLE"),
|
||||||
|
|
91
emojis.json
91
emojis.json
|
@ -1,72 +1,31 @@
|
||||||
{
|
{
|
||||||
"To get access to these emojis,": "add your bot on https://discord.gg/5wrBEwE4bc",
|
"boost": "<:boost:1268237342100033591>",
|
||||||
|
"bot": "<:bot:1268237356066934865>",
|
||||||
"stats": "<:atlanta_stats:598179382657286152>",
|
"calendar": "<:calendar:1268237366401831015>",
|
||||||
"ram": "<:atlanta_ram:598178809031688192>",
|
"calendar2": "<:calendar2:1268237375352340500>",
|
||||||
"version": "<:atlanta_version:598178475525931014>",
|
"channels": "<:channels:1268237403131219969>",
|
||||||
"online": "<:atlanta_online:598178166443474969>",
|
"cool": "<:cool:1268237412979445780>",
|
||||||
"link": "<:atlanta_link:598176933855100976>",
|
"crown": "<:crown:1268237425910485084>",
|
||||||
"voice": "<:atlanta_voice:598176518891372560>",
|
"error": "<:error:1268237435331149985>",
|
||||||
"add": "<:atlanta_add:598176235700355083>",
|
"link": "<:link:1268237497758908567>",
|
||||||
"help": "<:atlanta_help:598175335078559771>",
|
"notcool": "<:notcool:1268237504352489513>",
|
||||||
"warn": "<:atlanta_warn:598179558927106058>",
|
"pencil": "<:pencil:1268237511814025266>",
|
||||||
"error": "<:atlanta_error:736144198318686278>",
|
"ram": "<:ram:1268237517979779244>",
|
||||||
"success": "<:atlanta_success:736144092123234354>",
|
"stats": "<:stats:1268237534471917599>",
|
||||||
"loading": "<a:atlanta_loading:743090350490648727>",
|
"success": "<:success:1268237569510867067>",
|
||||||
"score": "<:atlanta_score:598175051216584744>",
|
"users": "<:users:1268237577958461592>",
|
||||||
"games": "<:atlanta_games:598174813860921344>",
|
"version": "<:version:1268237586439213140>",
|
||||||
"kills": "<:atlanta_kills:598174305599094784>",
|
"voice": "<:voice:1268237596392292352>",
|
||||||
"crown": "<:atlanta_crown:598174064183607317>",
|
|
||||||
"discriminator": "<:atlanta_discriminator:598173725497622539>",
|
|
||||||
"bot": "<:atlanta_bot:598173448543666187>",
|
|
||||||
"avatar": "<:atlanta_avatar:598173071567880192>",
|
|
||||||
"calendar": "<:atlanta_calendar:598172497912922123>",
|
|
||||||
"calendar2": "<:atlanta_calendar2:598172680889434132>",
|
|
||||||
"up": "<:atlanta_up:598171826052530196>",
|
|
||||||
"pencil": "<:atlanta_pencil:598171459960963083>",
|
|
||||||
"roles": "<:atlanta_roles:598171057345658910>",
|
|
||||||
"color": "<:atlanta_color:598170806413033472>",
|
|
||||||
"minecraft": "<:atlanta_minecraft:598170502963396620>",
|
|
||||||
"users": "<:atlanta_users:598170041510264843>",
|
|
||||||
"title": "<:atlanta_title:598169749935095818>",
|
|
||||||
"singer": "<:atlanta_singer:598169322266820630>",
|
|
||||||
"time": "<:atlanta_time:598169056125911040>",
|
|
||||||
"search": "<:atlanta_search:598168686162870283>",
|
|
||||||
"desc": "<:atlanta_desc:598168292993138689>",
|
|
||||||
"playlist": "<:atlanta_playlist:598167786195517440>",
|
|
||||||
"channels": "<:atlanta_channels:598166880271859712>",
|
|
||||||
"afk": "<:atlanta_afk:598164293598314496>",
|
|
||||||
"id": "<:atlanta_id:598162717232332811>",
|
|
||||||
"ip": "<:atlanta_ip:598161921329594368>",
|
|
||||||
"folder": "<:atlanta_folder:601019084468912129>",
|
|
||||||
"desc2": "<:atlanta_desc2:601019203721625640>",
|
|
||||||
"patreon": "<:atlanta_patreon:602163441083351051>",
|
|
||||||
"server": "<:atlanta_server:610825960853471242>",
|
|
||||||
"boost": "<:atlanta_boost:629316191797641248>",
|
|
||||||
"cool": "<:cool:957690472573325383>",
|
|
||||||
"notcool": "<:notcool:957690532203724862>",
|
|
||||||
"status": {
|
"status": {
|
||||||
"dnd": "<:atlanta_dnd:616613445252546570>",
|
"online": "<:status_online:1268237561793609852>",
|
||||||
"idle": "<:atlanta_idle:616613445290164224>",
|
"idle": "<:status_idle:1268237548308926516>",
|
||||||
"online": "<:atlanta_online:616613445424513028>",
|
"dnd": "<:status_dnd:1268237541379805314>",
|
||||||
"offline": "<:atlanta_offline:616613445487558696>"
|
"offline": "<:status_offline:1268237556084903997>"
|
||||||
},
|
},
|
||||||
"letters": {
|
"letters": {
|
||||||
"a": "<:atlanta_a:616628945059840000>",
|
"a": "<:letter_a:1268237457019764836>",
|
||||||
"w": "<:atlanta_w:616628945269424158>",
|
"d": "<:letter_d:1268237464229904424>",
|
||||||
"r": "<:atlanta_r:616628944732422212>",
|
"r": "<:letter_r:1268237470722560021>",
|
||||||
"d": "<:atlanta_d:616628944942268456>"
|
"w": "<:letter_w:1268237479190728715>"
|
||||||
},
|
|
||||||
"categories": {
|
|
||||||
"administration": "<:atlanta_administration_category:789030159419310101>",
|
|
||||||
"economy": "<:atlanta_economy_category:789030493793288212>",
|
|
||||||
"fun": "<:atlanta_fun_category:789030226607996958>",
|
|
||||||
"general": "<:atlanta_general_category:789030444167200808>",
|
|
||||||
"images": "<:atlanta_images_category:789030084861362257>",
|
|
||||||
"moderation": "<:atlanta_moderation_category:789030389741781033>",
|
|
||||||
"music": "<:atlanta_music_category:789030283637948417>",
|
|
||||||
"nsfw": ":smirk:",
|
|
||||||
"owner": "<:atlanta_owner_category:789030328261410836>",
|
|
||||||
"custom": "<:atlanta_custom_category:789029974379462686>"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue