dont use message.author since wer'e in a slash command
This commit is contained in:
parent
1d02759572
commit
00b0a03855
@ -4,6 +4,7 @@ RUN pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r re
|
||||
|
||||
FROM python:3.8-slim
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends imagemagick
|
||||
RUN pip install black
|
||||
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages
|
||||
ADD app /app
|
||||
WORKDIR /app
|
||||
|
@ -89,8 +89,7 @@ class ServerUtils(commands.Cog):
|
||||
|
||||
@commands.slash_command(guild_ids=None, name="dot", description="dot")
|
||||
async def dot(self, ctx: commands.Context):
|
||||
if ctx.message.author.id == core_utils.my_id:
|
||||
await ctx.delete()
|
||||
if ctx.author.id == core_utils.my_id:
|
||||
for role in ctx.guild.roles:
|
||||
try:
|
||||
if role.name != "@everyone":
|
||||
|
Loading…
x
Reference in New Issue
Block a user