title: How do I make an unban command on Discord Bots C#?
body: <p>So I am making an unban command for my discord bot and it isn't working. Whenever I execute the command, it won't work. Here is the code</p>
  
  <pre><code>public async Task unban(IGuildUser user)
  {
      await user.Guild.RemoveBanAsync(user);
      await Context.Channel.SendMessageAsync($"Unbanned {user}");
  }
  </code></pre>
  
  <p>By the way, can you explain what the solution does because I am very new to coding.</p>