| // written by https://github.com/FreyaHolmer so use at your own risk c: | |
| using System.Collections.Generic; | |
| using UnityEditor; | |
| using UnityEngine; | |
| /// <summary>Utility functions to copy GUIDs, as well as Copy/Paste import settings</summary> | |
| public static class AssetCopyUtils { | |
| const int CTX_MENU_LOCATION = 70; |
| # CSharp formatting rules: | |
| [*.cs] | |
| csharp_new_line_before_open_brace = none | |
| csharp_new_line_before_else = false | |
| csharp_new_line_before_catch = false | |
| csharp_new_line_before_finally = false | |
| csharp_new_line_before_members_in_object_initializers = false | |
| csharp_new_line_before_members_in_anonymous_types = false | |
| csharp_new_line_between_query_expression_clauses = false |
| using System; | |
| using System.Collections.Generic; | |
| using UnityEngine; | |
| public static class SortedGizmos | |
| { | |
| static List<ICommand> commands = new List<ICommand>(1000); | |
| public static Color color { get; set; } |
| /** | |
| * Hypertext Transfer Protocol (HTTP) response status codes. | |
| * | |
| * @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes} | |
| */ | |
| export enum HttpStatusCode { | |
| /** | |
| * The server has received the request headers and the client should proceed to send the request body | |
| * (in the case of a request for which a body needs to be sent; for example, a POST request). |
This is a summary of the Q&A regarding the new API ToS that took place in the #api channel on the Discord API server, starting around midnight UTC on Thursday, August 17, 2017.
All answers are from b1nzy unless marked otherwise. This is just a summary of my (meew0) own interpretation of the Q&A; obviously this shouldn't be interpreted as anything legally binding. If in doubt, ask the devs yourself or consult a lawyer. I'm not responsible if you get banned or sued because of this document. All subsequent usages of first-person pronouns refer to the people asking/answering the questions, respectively.
Q. How do we detect users deleting their accounts, if we have to delete their data within 7 days?
A. You will get an email by Discord if that happens. Make sure the account that registered the bot application has an email attached to it that you actually get messages with. This may change in the future but if it will, there will be plenty of time before the new mechanism goes into effect.
Q. **Do we need
| function ShowAutocompletion(obj) { | |
| // Disable default autocompletion for javascript | |
| monaco.languages.typescript.javascriptDefaults.setCompilerOptions({ noLib: true }); | |
| // Helper function to return the monaco completion item type of a thing | |
| function getType(thing, isMember) { | |
| isMember = (isMember == undefined) ? (typeof isMember == "boolean") ? isMember : false : false; // Give isMember a default value of false | |
| switch ((typeof thing).toLowerCase()) { | |
| case "object": |
| 'use strict'; | |
| const statusCodes = require('http').STATUS_CODES; | |
| function createError(code, name) { | |
| return function(message) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = name; | |
| this.message = message; | |
| this.statusCode = code; | |
| } |
| using Microsoft.CSharp; | |
| using System.CodeDom; | |
| using System.CodeDom.Compiler; | |
| using System.Collections.Generic; | |
| using System.Collections.ObjectModel; | |
| using System.Collections.Specialized; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Text; |
| /** | |
| * Merges two arrays like a zipping. Uneven sized arrays get items | |
| * appended to the end. | |
| * | |
| * @param array $a An array to merge | |
| * @param array $b Another array to merge | |
| * @return array An array of merged values | |
| */ | |
| function array_zip_merge(array $a, array $b) { | |
| $return = array(); |