generated from Baipyrus/DiscordJS-Template
Compare commits
2 Commits
6ded01b046
...
7f94c9ddd3
Author | SHA1 | Date | |
---|---|---|---|
7f94c9ddd3 | |||
b9407ed52c |
@ -14,7 +14,7 @@ const getchannel = async (member, channels) => {
|
||||
|
||||
// Create private channel with all permissions
|
||||
const name = member.user.username;
|
||||
const chName = `${name}${name.endsWith('s') ? "'" : "'s"} channel`;
|
||||
const chName = `${name}${name.toLowerCase().endsWith('s') ? "'" : "'s"} channel`;
|
||||
const privCh = await channels.create({
|
||||
name: chName,
|
||||
type: ChannelType.GuildVoice,
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord-bot",
|
||||
"version": "0.0.1",
|
||||
"version": "0.1.0",
|
||||
"description": "",
|
||||
"private": true,
|
||||
"main": "index.js",
|
||||
|
Loading…
Reference in New Issue
Block a user