Skip to content

Instantly share code, notes, and snippets.

View LautyDev's full-sized avatar

LautyDev LautyDev

View GitHub Profile
@LautyDev
LautyDev / advancedban-es.yml
Created August 19, 2024 04:03
Spanish translation of the AdvancedBan 2.3.0 plugin for Minecraft.
General:
Prefix: "&c&lAdvancedBan &8&l»"
NoPerms: "&c¡No tienes permisos para eso!"
LayoutNotFound: "&cNo existe un diseño llamado %NAME%"
# Esta será la sustitución para la variable %DURATION%
TimeLayoutD: "%D%día(s) %H%h %M%min y %S%seg"
TimeLayoutH: "%H%hora(s) %M%min y %S%seg"
TimeLayoutM: "%M%min y %S%seg"
TimeLayoutS: "%S% segundos"
FailedFetch: "&c¡No se pudo obtener el UUID de %NAME%! Revisa la consola para más detalles."
// Poll example Discord.js V14.15.1
import { PollData, PollLayoutType } from 'discord.js';
const poll: PollData = {
question: {
text: 'PHP is good?',
},
answers: [
{
@LautyDev
LautyDev / code.ts
Created April 14, 2024 19:26
How to know if a message is a poll (Discord)
message.activity === null &&
message.cleanContent === '' &&
message.roleSubscriptionData === null &&
message.components.length === 0 &&
message.system === false &&
message.webhookId === null &&
message.type === 0 &&
message.attachments.size === 0 &&
message.embeds.length === 0 &&
message.applicationId === null &&