dolfies / discord.py-self

A fork of the popular discord.py for user accounts.
https://discordpy-self.rtfd.io/en/latest/
MIT License
684 stars 162 forks source link

Removes unneeded await from `bot.is_owner()` function #243

Closed TheOnlyWayUp closed 2 years ago

TheOnlyWayUp commented 2 years ago

Summary

Fixes #239.

General Info

bot = commands.Bot(command_prefix="test!", self_bot=False) bot.owner_ids = [876055467678375998]

@bot.event async def on_ready(): print("logged in")

@bot.command() @commands.is_owner() async def ping(ctx): await ctx.reply(f"Pong, {round(bot.latency, 1)}ms.", mention_author=False)

bot.run()


- [x] This PR fixes an issue (please put issue # in summary). 
dolfies commented 2 years ago

This was fixed upstream. I'm already working on updating to upstream locally.