discord.py send command brief code example

Example 1: how to limit a command to a role in discord.py

@bot.command()
@commands.has_role('RoleName')
async def command_name():

Example 2: 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! ####