Skip to content

Commit

Permalink
fixed critical issue
Browse files Browse the repository at this point in the history
  • Loading branch information
McNobby committed Jan 16, 2021
1 parent a1313db commit a790316
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports.command = async (recievedMessage, primaryCommand, arguments) => {
if (member.permissions.has('ADMINISTRATOR')){

if(!arguments.includes('help')){
setup.setup(arguments, guild, author, channel)
setup.setup(arguments, recievedMessage)
}else{
embeds.setupHelp(recievedMessage)

Expand Down
3 changes: 1 addition & 2 deletions setup-command.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,11 @@ module.exports.setup = async (arguments, recievedMessage) => {
}
}

async function saveSetup(type, arg, guildd, channel, typeChannel, typeRole, author, recievedMessage){
async function saveSetup(type, arg, guild, channel, typeChannel, typeRole, author, recievedMessage){
const alogAlias = ["alog", "actionlog"]
const dlogAlias = ["dlog", "deletionlog"]
const sroleAlias = ["srole", "staffrole"]

const {guild} = recievedMessage

if (alogAlias.includes(type)) {
console.log("actionLog");
Expand Down

0 comments on commit a790316

Please sign in to comment.