if(!message.guild){returnmessage.channel.send("You must be in a server in order to enable RP character usage for a specific channel.");}
if(!message.member.permissionsIn(message.channel.id).has("MANAGE_WEBHOOKS")){returnmessage.channel.send("You must have permissions to edit webhooks here in order to do that.");}
if(!message.guild.me.permissions.has("MANAGE_WEBHOOKS")){returnmessage.channel.send("I don't have permissions to manage webhooks in this server.");}
if(!message.guild.me.permissionsIn(message.channel.id).has("MANAGE_WEBHOOKS")){returnmessage.channel.send("I don't have the permissions to edit webhooks in this channel.");}
if(webhooks.find(wh=>wh.token)){returnmessage.channel.send("It would seem RP is already enabled in this channel. If it's not working in this channel, please contact my developers.");}
try{
returnmessage.channel.createWebhook("Natsuki RP Webhook",{avatar:client.user.avatarURL({size:2048})})
returnmessage.channel.send("RP features were successfully enabled in this channel.");
})
.catch(message.channel.send("There was an error doing that. Please make sure my permissions are properly set in this channel and try again. If the error persists, please contact my developers."));
}catch{returnmessage.channel.send("There was an error doing that. Please make sure my permissions are properly set in this channel and try again. If the error persists, please contact my developers.");}
message.reply('Hey there! You asked me to clear your status when you send a message next, so I went ahead and did that for you.').then(m=>{setTimeout(()=>{m.delete().catch(()=>{});},5000);}).catch(()=>{});
message.reply('Hey there! You asked me to clear your status when you send a message next, so I went ahead and did that for you.').then(m=>{setTimeout(()=>{m.delete().catch(()=>{});},5000);}).catch(()=>{});
spinner.update({text:`${chalk.gray('[PROC]')} >> ${chalk.blueBright(`Cached`)}${chalk.white(`${amount}`)}${chalk.blueBright(`guilds with RP enabled.`)}`});