registerGlobal method
Implementation
@override
Future<void> registerGlobal(Bot bot) async {
final List<CommandBuilder> globalCommands =
_getContext(CommandContextType.global);
final payload = _serializeCommand(globalCommands);
final req = Request.json(
endpoint: '/applications/${bot.id}/commands', body: payload);
await _dataStore.client.put(req);
}