how to limit a command to a role in discord.py
@bot.command()
@commands.has_role('RoleName')
async def command_name():
how to limit a command to a role in discord.py
@bot.command()
@commands.has_role('RoleName')
async def command_name():
Discord Announcement bot python
import time
from discord_webhook import DiscordWebhook
from discord_webhook import DiscordEmbed
InfoUser = input("What Should Be The Text in Your 1st Line: ")
InfoPass = input("What Should Be The Text in Your 2st Line:: ")
webhook = DiscordWebhook(url='Your WebHook Url Here')
EveryonePing = DiscordWebhook(url='Your WebHook Url Here', content="@everyone")
embed = DiscordEmbed(title='Announcement', description="@everyone" + "```" + InfoUser + "```" + "```" + "" + InfoPass + "```", color=242424)
webhook.add_embed(embed)
PingingAll = EveryonePing.execute()
response = webhook.execute()
time.sleep(100000)
###### Made By Rigby#9052 on Discord ####
##### Please Give Credits #####
#### Have Fun! ####
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us