forked from gooberinc/goober
added permission wrapper
This commit is contained in:
parent
f7042ed8a7
commit
f186e079da
29 changed files with 860 additions and 788 deletions
|
@ -2,6 +2,7 @@ import discord
|
|||
from discord.ext import commands
|
||||
from discord import app_commands
|
||||
|
||||
|
||||
class Ping(commands.Cog):
|
||||
def __init__(self, bot):
|
||||
self.bot = bot
|
||||
|
@ -12,11 +13,15 @@ class Ping(commands.Cog):
|
|||
exampleembed = discord.Embed(
|
||||
title="Pong!!",
|
||||
description="The Beretta fires fast and won't make you feel any better!",
|
||||
color=discord.Color.blue()
|
||||
color=discord.Color.blue(),
|
||||
)
|
||||
exampleembed.set_footer(
|
||||
text=f"Requested by {interaction.user.name}",
|
||||
icon_url=interaction.user.avatar.url,
|
||||
)
|
||||
exampleembed.set_footer(text=f"Requested by {interaction.user.name}", icon_url=interaction.user.avatar.url)
|
||||
|
||||
await interaction.followup.send(embed=exampleembed)
|
||||
|
||||
|
||||
async def setup(bot):
|
||||
await bot.add_cog(Ping(bot))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue