code: def is_on_cooldown(self, ctx):
          
          if not self._buckets.valid:
              return False
  
          bucket = self._buckets.get_bucket(ctx.message)
          return bucket.get_tokens() == 0
docs: Checks whether the command is currently on cooldown.
  
          Parameters
          -----------
          ctx: :class:`.Context.`
              The invocation context to use when checking the commands cooldown status.
  
          Returns
          --------
          :class:`bool`
              A boolean indicating if the command is on cooldown.