the first commit
This commit is contained in:
commit
d5920470cc
18 changed files with 1887 additions and 0 deletions
27
commands/roleplaying/go.js
Normal file
27
commands/roleplaying/go.js
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
const { SlashCommandBuilder, ChannelType } = require(`discord.js`)
|
||||
const { EmbedBuilder } = require('discord.js');
|
||||
|
||||
|
||||
module.exports = {
|
||||
data: new SlashCommandBuilder()
|
||||
.setName(`go`)
|
||||
.setDescription(`Go to a channel in roleplay`)
|
||||
.addChannelOption(option =>
|
||||
option.setName('channel')
|
||||
.setDescription('Where you wanna go?')
|
||||
.setRequired(true)),
|
||||
|
||||
async execute(interaction) {
|
||||
const chan = interaction.options.getChannel(`channel`)
|
||||
const member = interaction.guild.members.cache.get(interaction.user.id);
|
||||
const nickname = member.nickname;
|
||||
const exitEmbed = new EmbedBuilder()
|
||||
.setAuthor({ name: nickname })
|
||||
.setDescription(`Went to <#${chan.id}>`)
|
||||
const cameEmbed = new EmbedBuilder()
|
||||
.setAuthor({ name: nickname })
|
||||
.setDescription(`Came from <#${chan.id}>`)
|
||||
interaction.reply({ embeds: [exitEmbed] });
|
||||
chan.send({ embeds: [cameEmbed] });
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue