mirror of
https://github.com/uhIgnacio/EmoteManager.git
synced 2024-08-15 02:23:13 +00:00
add cogs/emoji
This commit is contained in:
parent
065505f273
commit
bac48f7095
1 changed files with 16 additions and 0 deletions
16
cogs/emoji.py
Normal file
16
cogs/emoji.py
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
# encoding: utf-8
|
||||||
|
|
||||||
|
from discord.ext import commands
|
||||||
|
|
||||||
|
class Emoji:
|
||||||
|
def __init__(self, bot):
|
||||||
|
self.bot = bot
|
||||||
|
|
||||||
|
async def __local_check(self, context):
|
||||||
|
return (
|
||||||
|
context.guild
|
||||||
|
and context.author.guild_permissions.manage_emojis)
|
||||||
|
|
||||||
|
def setup(bot):
|
||||||
|
bot.add_cog(Emoji(bot))
|
Loading…
Reference in a new issue