Rename AddXp function to proper naming convention
This commit is contained in:
parent
7c22efbb49
commit
c0acf1ff79
@ -66,12 +66,12 @@ namespace ChaosBot.Discord.Services
|
||||
if (!(message.HasMentionPrefix(_client.CurrentUser, ref argPos) ||
|
||||
message.HasStringPrefix(prefix, ref argPos)))
|
||||
{
|
||||
ExperienceHandler.addXP(context);
|
||||
ExperienceHandler.AddXp(context);
|
||||
return;
|
||||
}
|
||||
|
||||
if(Convert.ToBoolean(ConfigurationRepository.GetValue<string>("Experience:Commands", context.Guild.Id, "false")))
|
||||
ExperienceHandler.addXP(context);
|
||||
ExperienceHandler.AddXp(context);
|
||||
|
||||
await _commands.ExecuteAsync(context, argPos, _services);
|
||||
}
|
||||
|
||||
@ -17,7 +17,7 @@ namespace ChaosBot.Discord.Services
|
||||
{
|
||||
private static readonly ILogger _logger = Program.Logger;
|
||||
|
||||
public static async void addXP(SocketCommandContext context)
|
||||
public static async void AddXp(SocketCommandContext context)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user