From ed516f5872cdf54a9a0890b768e672888a4398f5 Mon Sep 17 00:00:00 2001
From: Madpeterz <57852827+Madpeterz@users.noreply.github.com>
Date: Tue, 16 Feb 2021 08:57:01 +0000
Subject: [PATCH] corrects arghints for some HTTP commands
---
BetterSecondbot/HttpService/Chat.cs | 2 +-
BetterSecondbot/HttpService/Estate.cs | 6 +++---
BetterSecondbot/HttpService/Group.cs | 6 ++++--
3 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/BetterSecondbot/HttpService/Chat.cs b/BetterSecondbot/HttpService/Chat.cs
index 7fe9435..fe7f7a0 100644
--- a/BetterSecondbot/HttpService/Chat.cs
+++ b/BetterSecondbot/HttpService/Chat.cs
@@ -28,7 +28,7 @@ namespace BetterSecondBot.HttpService
}
[About("sends a message to localchat")]
- [ArgHints("message","Text", "the message to send")]
+ [ArgHints("message", "URLARG", "the message to send")]
[ReturnHints("array string")]
[Route(HttpVerbs.Post, "/localchatsay/{token}")]
public object localchatSay(string token, [FormField] string message)
diff --git a/BetterSecondbot/HttpService/Estate.cs b/BetterSecondbot/HttpService/Estate.cs
index 240bc46..2ca799b 100644
--- a/BetterSecondbot/HttpService/Estate.cs
+++ b/BetterSecondbot/HttpService/Estate.cs
@@ -35,9 +35,9 @@ namespace BetterSecondBot.HttpService
[ReturnHints("Unable to find avatar UUID")]
[ReturnHints("Unable to process global value please use true or false")]
[ReturnHints("Not an estate manager on region {REGIONNAME}")]
- [ArgHints("avatar", "uuid", "the avatar you wish to ban")]
- [ArgHints("mode", "add|remove", "What action would you like to take
Defaults to remove if not given \"add\"")]
- [ArgHints("global", "true|false", "if true this the ban/unban will be applyed to all estates the bot has access to")]
+ [ArgHints("avatar", "URLARG", "the uuid avatar you wish to ban")]
+ [ArgHints("mode", "URLARG", "What action would you like to take
Defaults to remove if not given \"add\"")]
+ [ArgHints("global", "URLARG", "if true this the ban/unban will be applyed to all estates the bot has access to")]
[Route(HttpVerbs.Get, "/update-banlist/{avatar}/{mode}/{global}/{token}")]
public Object UpdateBanlist(string avatar, string mode, string global, string token)
diff --git a/BetterSecondbot/HttpService/Group.cs b/BetterSecondbot/HttpService/Group.cs
index 358c78a..e746737 100644
--- a/BetterSecondbot/HttpService/Group.cs
+++ b/BetterSecondbot/HttpService/Group.cs
@@ -23,6 +23,8 @@ namespace BetterSecondBot.HttpService
[ReturnHints("Unknown group")]
[ReturnHints("Invaild group UUID")]
[ReturnHints("Unable to find avatar UUID")]
+ [ArgHints("group", "URLARG", "the UUID of the group")]
+ [ArgHints("avatar", "URLARG", "the UUID of the avatar you wish to check with")]
[Route(HttpVerbs.Get, "/ismember/{group}/{avatar}/{token}")]
public object ismember(string group,string avatar,string token)
{
@@ -75,11 +77,11 @@ namespace BetterSecondBot.HttpService
}
[About("Requests the roles for the selected group
Replys with GroupRoleDetails object formated as follows