Discord Bot Permissions
#2

An example how to disable bot messages:

PHP код:
#define BOT_NAME "YourBotName"
public DCC_OnChannelMessage(DCC_Channel:channelDCC_User:author, const message[])
{
    new 
channel_name[100 1], user_name[32 1], user[24];
    if(!
DCC_GetChannelName(channelchannel_name)) return 0// invalid channel
    
if(!DCC_GetUserName(authoruser_name)) return 0// invalid user
    
DCC_GetUserName(DCC_User:authoruser24);
    if(!
strcmp(userBOT_NAME)) return 0// Don't show bot messages in chat

You can make a different channel and restric it's access to admins only and send messages to that channel.
Reply


Messages In This Thread
Discord Bot Permissions - by OmerKhan - 04.07.2018, 04:07
Re: Discord Bot Permissions - by kovac - 04.07.2018, 04:12
Re: Discord Bot Permissions - by OmerKhan - 04.07.2018, 04:16
Re: Discord Bot Permissions - by kovac - 04.07.2018, 04:20
Re: Discord Bot Permissions - by OmerKhan - 04.07.2018, 04:22
Re: Discord Bot Permissions - by kovac - 04.07.2018, 04:25
Re: Discord Bot Permissions - by OmerKhan - 04.07.2018, 04:30
Re: Discord Bot Permissions - by kovac - 04.07.2018, 04:39
Re: Discord Bot Permissions - by OmerKhan - 04.07.2018, 04:41
Re: Discord Bot Permissions - by Sasino97 - 04.07.2018, 11:01

Forum Jump:


Users browsing this thread: 1 Guest(s)