What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-12 09:44:23
discord bot
// Import the discord.js module const Discord = require('discord.js'); // Create an instance of a Discord client const client = new Discord.Client(); /** * The ready event is vital, it means that only _after_ this will your bot start reacting to inform... Add solution -
Python 2021-11-11 19:31:10
discord self bot python
#Discord self bot python: from discord.ext import commands bot = commands.Bot(">>>", self_bot=True) @bot.event async def on_ready(): print("Bot presence t u r n e d on ( ͡° ͜ʖ ͡°)") @bot.command() async def tes... Add solution -
Python 2021-11-11 11:53:17
local image embed discord py
embed = discord.Embed(title="Title", description="Desc", color=0x00ff00) #creates embed file = discord.File("path/to/image/file.png", filename="image.png") embed.set_image(url="attachment://image.png") awa... Add solution -
Python 2021-11-09 21:14:18
adding roles discord py
# If ctx is not defined and you are handling a message, use this code ctx = await bot.get_context(message) # This is the code needed to give a user a role member = ctx.message.author # Member object that you want to add the role to role = discord.utils.g... Add solution -
Python 2021-11-09 19:36:17
discord.py basic command
#If you havent already install discord.py using pip install discord.py #Then import discord #Then Import commands import discord from discord.ext import commands #Create your bot instinct #With the bot Prefix set to ! #You can change it to your choice cli... Add solution