fix
This commit is contained in:
parent
2123978715
commit
1e53d7d770
1 changed files with 0 additions and 10 deletions
|
@ -3,7 +3,6 @@ import {
|
||||||
Intents,
|
Intents,
|
||||||
Message,
|
Message,
|
||||||
Member,
|
Member,
|
||||||
Role,
|
|
||||||
GuildChannels,
|
GuildChannels,
|
||||||
Embed,
|
Embed,
|
||||||
Guild,
|
Guild,
|
||||||
|
@ -81,15 +80,6 @@ client.on('messageCreate', async (msg: Message) => {
|
||||||
})
|
})
|
||||||
.join('\n') as string)
|
.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') {
|
} else if (msg.content === '!channels') {
|
||||||
const col = await msg.guild?.channels.array()
|
const col = await msg.guild?.channels.array()
|
||||||
const data = col
|
const data = col
|
||||||
|
|
Loading…
Reference in a new issue