mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-12-17 19:02:22 -05:00
hoverEvent discord mc message
This commit is contained in:
parent
a6ecadeff7
commit
9badb543de
1 changed files with 28 additions and 10 deletions
38
index.js
38
index.js
|
@ -407,17 +407,35 @@ dcclient.on('messageCreate', async (message) => {
|
||||||
}
|
}
|
||||||
const component = [
|
const component = [
|
||||||
{text: '[', color: 'dark_gray'},
|
{text: '[', color: 'dark_gray'},
|
||||||
{text: 'ChomeNS ', color: 'yellow', clickEvent: {
|
{text: 'ChomeNS ', color: 'yellow',
|
||||||
action: 'open_url',
|
clickEvent: {
|
||||||
value: 'https://discord.gg/xdgCkUyaA4',
|
action: 'open_url',
|
||||||
}},
|
value: 'https://discord.gg/xdgCkUyaA4',
|
||||||
{text: 'Discord', color: 'blue', clickEvent: {
|
},
|
||||||
action: 'open_url', value: 'https://discord.gg/xdgCkUyaA4',
|
},
|
||||||
}},
|
{text: 'Discord', color: 'blue',
|
||||||
|
clickEvent: {
|
||||||
|
action: 'open_url',
|
||||||
|
value: 'https://discord.gg/xdgCkUyaA4',
|
||||||
|
},
|
||||||
|
},
|
||||||
{text: '] ', color: 'dark_gray'},
|
{text: '] ', color: 'dark_gray'},
|
||||||
{text: `${message.member.displayName}`, color: 'red', clickEvent: {
|
{text: `${message.member.displayName}`, color: 'red',
|
||||||
action: 'copy_to_clipboard', value: `${message.author.username}#${message.author.discriminator}`,
|
clickEvent: {
|
||||||
}},
|
action: 'copy_to_clipboard',
|
||||||
|
value: `${message.author.username}#${message.author.discriminator}`,
|
||||||
|
},
|
||||||
|
hoverEvent: {
|
||||||
|
action: 'show_text',
|
||||||
|
value: [
|
||||||
|
{text: message.author.username, color: 'white'},
|
||||||
|
{text: '#', color: 'dark_gray'},
|
||||||
|
{text: message.author.discriminator, color: 'gray'},
|
||||||
|
'\n',
|
||||||
|
{text: 'Click here to copy the tag to your clipboard', color: 'green'},
|
||||||
|
],
|
||||||
|
},
|
||||||
|
},
|
||||||
{text: ' › ', color: 'dark_gray'},
|
{text: ' › ', color: 'dark_gray'},
|
||||||
chatMessage.MessageBuilder.fromString('&7' + message.content),
|
chatMessage.MessageBuilder.fromString('&7' + message.content),
|
||||||
attachmentsComponent.length === 0 ? '' : attachmentsComponent,
|
attachmentsComponent.length === 0 ? '' : attachmentsComponent,
|
||||||
|
|
Loading…
Reference in a new issue