Raid is a moderation command so you need the moderation scope on the token used to connected to chat
Additionally the user issuing the raid (in this case your bot) needs to be an editor of the channel.
See also Customer Support on the editor level commands
See also Cannot run "editor" level commands via chat. · Issue #446 · twitchdev/issues · GitHub and Twitch Chat Commands | Twitch Developers
You need the channel_editor scope and the user needs to be an editor for the channel you wish to raid from.