if(!message.member.permissions.has("ADMINISTRATOR")&&(!tguild.staffrole.length||!message.guild.roles.cache.has(tguild.staffrole)||!message.member.roles.cache.has(tguild.staffrole))){returnmessage.reply("You don't have the permissions to use this command here.");}
if(!message.member.permissions.has("ADMINISTRATOR")&&(!tguild.staffrole.length||!message.guild.roles.cache.has(tguild.staffrole)||!message.member.roles.cache.has(tguild.staffrole))){returnmessage.reply("You don't have the permissions to use this command here.");}
if(!args.length){returnmessage.channel.send(`Syntax: \`${prefix} <newPrefix|clear>\`. My current prefix in this server is \`${tguild.prefix.length?tguild.prefix:'n?'}\``);}
if(!args.length){returnmessage.channel.send(`Syntax: \`${prefix} <newPrefix|clear>\`. My current prefix in this server is \`${tguild.prefix.length?tguild.prefix:'n?'}\``);}
letnp=args[0];
letnp=args[0];
if(np.length>7){returnmessage.reply("Hmmm, that prefix is a bit long. Try making something smaller!");}
if(np.length>7){returnmessage.reply("Hmmm, that prefix is a bit long. Try making something smaller!");}
if(!np.match(/^[a-zA-Z0-9,.!?<>\-_+=/;$#%^&*]$/m)){returnmessage.reply('Your custom prefix contains some *wonky* characters. Please use only alphanumerics and basic symbols.');}
if(!np.match(/^[a-zA-Z0-9,.!?<>\-_+=/;$#%^&*]+$/)){returnmessage.reply('Your custom prefix contains some *wonky* characters. Please use only alphanumerics and basic symbols.');}