Having trouble with permissions for a Discord Bot.

I need to know the coding to put in to make it so that only people with a certain permission can use certain commands on the bot (like kick, ban, etc).

If someone could reply to this post to let me know the command, that would be greatly appreciated.

What did you try so far, how much do you know?
Sounds like you need a command that can get the roles/permissions of a user and then have the bot check that.
Or create the roles within the bot, fill those with users and have the bot check the usernames/ids for commands.

For restricting actions and giving permission of access in the server, Go to Server Settings > Roles