This is my code:
await message.member.timeout(spamTimeout, 'Recieved a timeout for exceeding max message limit.');
It gives me an error saying:
DiscordAPIError: Missing Permissions
But the bot is the owner of the guild so why would it not have permissions?