This commit is contained in:
DjDeveloperr 2021-04-04 19:12:16 +05:30
parent 2123978715
commit 1e53d7d770
1 changed files with 0 additions and 10 deletions

View File

@ -3,7 +3,6 @@ import {
Intents,
Message,
Member,
Role,
GuildChannels,
Embed,
Guild,
@ -81,15 +80,6 @@ client.on('messageCreate', async (msg: Message) => {
})
.join('\n') as string)
)
} else if (msg.content === '!roles') {
const col = await msg.guild?.roles.collection()
const data = col
?.array()
.map((c: Role, i: number) => {
return `${i + 1}. ${c.name}`
})
.join('\n') as string
msg.channel.send('Roles List:\n' + data)
} else if (msg.content === '!channels') {
const col = await msg.guild?.channels.array()
const data = col