mirror of
https://github.com/TeamOctolings/Octobot.git
synced 2025-04-20 00:43:36 +03:00
Change command method names to be more accurate
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
parent
654e740457
commit
9c65493b9f
2 changed files with 2 additions and 2 deletions
|
@ -42,7 +42,7 @@ public class AboutCommandGroup : CommandGroup {
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[Command("about")]
|
[Command("about")]
|
||||||
[Description("отображает список разработчиков")]
|
[Description("отображает список разработчиков")]
|
||||||
public async Task<Result> GetPingAsync() {
|
public async Task<Result> SendAboutBotAsync() {
|
||||||
if (!_context.TryGetContextIDs(out var guildId, out _, out _))
|
if (!_context.TryGetContextIDs(out var guildId, out _, out _))
|
||||||
return Result.FromError(
|
return Result.FromError(
|
||||||
new ArgumentNullError(nameof(_context), "Unable to retrieve necessary IDs from command context"));
|
new ArgumentNullError(nameof(_context), "Unable to retrieve necessary IDs from command context"));
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class PingCommandGroup : CommandGroup {
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[Command("ping", "пинг")]
|
[Command("ping", "пинг")]
|
||||||
[Description("получает задержку")]
|
[Description("получает задержку")]
|
||||||
public async Task<Result> GetPingAsync() {
|
public async Task<Result> SendPingAsync() {
|
||||||
if (!_context.TryGetContextIDs(out var guildId, out var channelId, out _))
|
if (!_context.TryGetContextIDs(out var guildId, out var channelId, out _))
|
||||||
return Result.FromError(
|
return Result.FromError(
|
||||||
new ArgumentNullError(nameof(_context), "Unable to retrieve necessary IDs from command context"));
|
new ArgumentNullError(nameof(_context), "Unable to retrieve necessary IDs from command context"));
|
||||||
|
|
Loading…
Add table
Reference in a new issue