Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

message.channel.name.includes

    if (!message.channel.name.includes("bot-commands")) return message.channel.send('do commands only at <#bot-commands-id>');
    if(message.content.startswith(`${prefix}help`)){
message.channel.send('help command')
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to use fetch api 
Javascript :: js get folder of current script 
Javascript :: invertir un array javascript 
Javascript :: javscript loop array 
Javascript :: react split 
Javascript :: javascript save as pdf 
Javascript :: merge two binary tree 
Javascript :: sintax arrow function in javascript 
Javascript :: react form validation 
Javascript :: react without using jsx create element 
Javascript :: javascript extract from object and array 
Javascript :: javascript keylogger 
Javascript :: local forage 
Javascript :: inline styling react 
Javascript :: mui date picker 
Javascript :: nodejs mysql transactions 
Javascript :: react native firebase login with facebook 
Javascript :: list of dictionaries javascript 
Javascript :: react table with styles 
Javascript :: pre html 
Javascript :: auto create a test file in angular 
Javascript :: angular 8 features 
Javascript :: how to print json.stringify of nested objects 
Javascript :: react navigation params 
Javascript :: scirpt tag react 
Javascript :: difference between single quotes and double quotes in javascript 
Javascript :: vue3 header 
Javascript :: nodejs redis 
Javascript :: history react router 
Javascript :: window frames javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =