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 -
Python 2022-03-27 15:35:04
how to limit a command to a permission in discord.py
# Make sure you don't have a command called "commands" @client.command() # As usual @commands.has_permissions(administrator=True) # Making sure the person executing the command has the permissions async def foo(ctx): await ctx.send("Hello&... 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 -
C# 2022-03-16 11:15:47
.net httpclient add body
public async string Example() { //The data that needs to be sent. Any object works. var pocoObject = new { Name = "John Doe", Occupation = "gardener" }; //Converting the object to a json string. NOTE: Make sure the ob... 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
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5