bots

addRole is not a function

跟風遠走 提交于 2020-12-06 04:35:52
问题 I am creating a Discord Bot. I am trying create a Mute command, but I always get the same error. What went wrong? Background information: Discord.js version: 12.0.0-dev Klasa with version 0.5.0-dev is used Code: const { Command } = require('klasa'); const { MessageEmbed } = require('discord.js'); module.exports = class extends Command { constructor(...args) { super(...args, { description: 'Mute an user.' }) } async run(msg, args) { if(!msg.member.hasPermission("MANAGE_MEMBERS")) return msg

Chrome driver for Selenium stuck in grey screen on bet365 site

橙三吉。 提交于 2020-12-03 07:32:22
问题 I’ve got grey screen when was trying to open bet365 site using Chrome driver and Selenium. var driver = new ChromeDriver(); driver.Navigate().GoToUrl("https://www.bet365.it/"); 回答1: I executed your usecase with a couple of tweaks and faced the same consequences. Here are the execution details: Code Block [ Python ]: from selenium import webdriver options = webdriver.ChromeOptions() options.add_argument("start-maximized") options.add_experimental_option("excludeSwitches", ["enable-automation"]

How do I make a slack bot leave a channel?

白昼怎懂夜的黑 提交于 2020-12-02 00:08:20
问题 Bots cannot use the regular channels.leave API call, so how do I make a bot leave a channel, short of kicking it? I need it to leave a channel where I do not have rights to kick users. 回答1: You can /remove (or /kick ) the bot. Type /kick @botname in the channel which you want the bot to leave. 回答2: If you are asking about Slackbot in particular, you cannot remove it from a channel (see Slack's response to this question). If you have permission to delete Slackbot's responses, you can install

How do I make a slack bot leave a channel?

谁说胖子不能爱 提交于 2020-12-02 00:07:45
问题 Bots cannot use the regular channels.leave API call, so how do I make a bot leave a channel, short of kicking it? I need it to leave a channel where I do not have rights to kick users. 回答1: You can /remove (or /kick ) the bot. Type /kick @botname in the channel which you want the bot to leave. 回答2: If you are asking about Slackbot in particular, you cannot remove it from a channel (see Slack's response to this question). If you have permission to delete Slackbot's responses, you can install

How do I make a slack bot leave a channel?

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-02 00:06:39
问题 Bots cannot use the regular channels.leave API call, so how do I make a bot leave a channel, short of kicking it? I need it to leave a channel where I do not have rights to kick users. 回答1: You can /remove (or /kick ) the bot. Type /kick @botname in the channel which you want the bot to leave. 回答2: If you are asking about Slackbot in particular, you cannot remove it from a channel (see Slack's response to this question). If you have permission to delete Slackbot's responses, you can install

Discord.js sending a message to a specific channel

安稳与你 提交于 2020-11-25 02:16:18
问题 I'm failing to achieve something very simple. I can't send a message to a specific channel. I've browsed trough the documentation and similar threads on stack overflow. client.channels.get().send() does NOT work. It is not a function. I also do not see it as a method on the Channel class on the official documentation yet every thread I've found so far has told me to use that. I managed to have the bot reply to a message by listening for a message and then using message.reply() but I don't

Discord.js sending a message to a specific channel

感情迁移 提交于 2020-11-25 02:14:25
问题 I'm failing to achieve something very simple. I can't send a message to a specific channel. I've browsed trough the documentation and similar threads on stack overflow. client.channels.get().send() does NOT work. It is not a function. I also do not see it as a method on the Channel class on the official documentation yet every thread I've found so far has told me to use that. I managed to have the bot reply to a message by listening for a message and then using message.reply() but I don't