What do you want to save?
Add Code snippet
New code examples
-
Other 2022-03-27 18:55:07
discord.py embed generator
embed=discord.Embed(title=server INFO!, description=this is he server's infos, color=0x0400ff) embed.add_field(name=the total member count, value=, inline=False) embed.add_field(name=the bots count in the server, value=, inline=False) embed.add_field(name... Add solution -
Other 2022-03-24 11:55:02
make a discord message embed
//command handlers dont do this if you already have them exports.run = async (client, message, args) => { //define the embed with let, const, or var var EmbedMessage = new Discord.MessageEmbed() .setColor('red') .setImage('You can set a ima... Add solution -
Python 2022-03-17 06:40:21
discord py check if user has permission return message if not
@bot.command() @has_permissions(kick_members=True) async def kick(self, ctx, Member: discord.Member): await bot.kick(Member) @kick.error async def kick_error(error, ctx): if isinstance(error, MissingPermissions): await ctx.send(&quo... Add solution -
-
Python 2022-03-13 01:20:11
how to make a discord bot in python
import discord from discord.ext import commands bot = commands.Bot(command_prefix="!", description="The description") @bot.event async def on_ready(): print("Ready !") @bot.command() async def ping(ctx): await ctx... Add solution -
Javascript 2022-03-12 14:00:06
discord.js nickname command
const Discord = require('discord.js') exports.run = async (client, message, args) => { if (!message.member.hasPermission('MANAGE_NICKNAMES')) return message.reply(`You cannot use this command as you do not have the \`MANAGE_NICKNAMES\` permission`... Add solution -
Other 2022-03-11 16:40:03
DiscordUtils
import discord from discord.ext import commands import DiscordUtils intents = discord.intents.default() intents.members = True bot = commands.AutoShardedBot(command_prefix=">", intents=intents) tracker = DiscordUtils.InviteTracker(bot) @bot... Add solution