from functools import wraps


def bot_only(func):
    @wraps(func)
    def inner(self, *args, **kwargs):
        if not self.user.bot:
            return
        return func(self, *args, **kwargs)
    return inner

from functools import wraps


def bot_only(coro):
    @wraps(coro)
    async def inner(self, *args, **kwargs):
        if not self.user.bot:
            return
        return await coro(self, *args, **kwargs)
    return inner

Make bot_only async, because duh
Make bot_only async, because duh

  from functools import wraps
  
  
- def bot_only(func):
+ def bot_only(coro):
-     @wraps(func)
+     @wraps(coro)
-     def inner(self, *args, **kwargs):
+     async def inner(self, *args, **kwargs):
          if not self.user.bot:
              return
-         return func(self, *args, **kwargs)
+         return await coro(self, *args, **kwargs)
      return inner
  
Make bot_only async, because duh
## Code Before:
from functools import wraps


def bot_only(func):
    @wraps(func)
    def inner(self, *args, **kwargs):
        if not self.user.bot:
            return
        return func(self, *args, **kwargs)
    return inner

## Instruction:
Make bot_only async, because duh
## Code After:
from functools import wraps


def bot_only(coro):
    @wraps(coro)
    async def inner(self, *args, **kwargs):
        if not self.user.bot:
            return
        return await coro(self, *args, **kwargs)
    return inner
