The Love of Hernandez 312

chequebrick3's blog

header photo

blog post

Make discord talking bot - Tips Command (2021)

What is going on men welcome back to. an additional discord.js academic in contemporary. academic we'll be doing a. tips channel. and i suggest command so this became. motivated via. my server right here on my server i've. a suggestions channel. wherein somebody can kind a few style of. keyword phrases a gaggle of key terms and the. body's correctly gonna update these. key words with an embed. and then display like this with . emojis so persons can vote convinced or no. for that pointers so i myself acquired a. proposal. to try this video inside of this. guidelines channel so if you. are new to coding and need help with. your discord bot be sure to join my. server come each of the way down right here within the . coding section. and there is a bunch of channels right here for. your assist so. let's go ahead and start we are. going to be doing a suggestions command.
we're not likely to be doing. a suggestions occasion an event that exams. if somebody ship a message within the . hints channel. we're just going to be doing a command. simply to make this extra easy so the. command iis going to be named. suggestions.js i'm going to start by using. doing the. regular module.exports for the call. we are gonna have the same call. because the dossier we're gonna have. aliases the aliases is gonna be. imply. as well as proposal so thought. we aren't gonna have a cooldown we are. gonna have the permissions. yet we're not gonna enter any. permissions so just an empty record. after which we are gonna have an outline. and description could be anything. like uh creates a suggestion. and then finally do the execute method. with my parameters that is message. rxcmd purchaser and discord. go ahead and open this up and the 1st.

element that we want to do. is we wish to determine that that member. that just despatched the message. that categorical server that they ship a. message in correctly has. a permissions channel so there is. numerous approaches we can do that if you are. extra improved and you're aactually. creating a large. bot it is advisable to do thiis through a. database so a particular admin can. correctly specify. what is that suggestions channel with. the channel identification. notwithstanding for this video over again attempting. to maintain it easy we're just going to. examine. that that server has a channel that's. named. permissions so khan's channel. and iit's going to be equal to message. that guild. that channel statcash dot uncover. um and we will do c flow this in. and make sure that c dot call the. channel call. triple equals to permissions. sorry permissions not permissions.

Tips. recommendations and then we're going to. investigate that that channel. exists or technically investigate if that. channel would not exist. to then send a message announcing hiya you. are missing this channel on your server. so return message that channel that ship. guidelines channel does. not exist or anything like that. you men can edit those messages so we. actually go forward and run our bot. and pass into our test server right here and we. move right into a random channel and do the. tips. uh command or mean it's one of the. aliases it is gonna say good day hints. channel does not exist. if we pass forward and truly create the. pointers channel. and retype that command mean. it's aactually gonna send anything. because the channel actually does. exist so let's go back into our code. and now what we're going to do is get.
The argumen

Go Back

Comment