def _is_under_cooldown(self, command, timestamp):
    "\n        Check if this command's cooldown period is in effect\n        :param command: Which command\n        :param timestamp: What is the timestamp it was issued on\n        :return:\n        "
    if (command in self.commands_last_executed):
        if ('cooldown' in self.commands[command]['flags']):
            cooldown_period = self.commands[command]['flags']['cooldown']
            last_executed = self.commands_last_executed[command]
            if (cooldown_period is not None):
                cooldown_expires = (last_executed + cooldown_period)
                if (timestamp < cooldown_expires):
                    return True
    return False
Check if this command's cooldown period is in effect
:param command: Which command
:param timestamp: What is the timestamp it was issued on
:return:
def _is_under_cooldown(self, command, timestamp):
    "\n        Check if this command's cooldown period is in effect\n        :param command: Which command\n        :param timestamp: What is the timestamp it was issued on\n        :return:\n        "
    if (command in self.commands_last_executed):
        if ('cooldown' in self.commands[command]['flags']):
            cooldown_period = self.commands[command]['flags']['cooldown']
            last_executed = self.commands_last_executed[command]
            if (cooldown_period is not None):
                cooldown_expires = (last_executed + cooldown_period)
                if (timestamp < cooldown_expires):
                    return True
    return False